0

I have a Enum class like this Ex:

public Enum MyActivity{    
    Catch(MyActivityGroup.ball),
    Throw(MyActivityGroup.helmet),
    Run(MyActivityGroup.single);

    private Enum MyActivityGroup{
       ball, helmet, single    
    }
}

How to write junit testcase class for this Enum class...?

AurA
  • 12,135
  • 7
  • 46
  • 63
user3747366
  • 1
  • 1
  • 1

1 Answers1

1

There is nothing to be tested directly here. Probably the enum will be used in tests for other classes, which should be sufficient, since their existence is basically the only property of the Enums.

Jens Schauder
  • 77,657
  • 34
  • 181
  • 348