/** * @return the randomKind */ public RandomKind getRandomKind() { return RandomKind.whichValue( this.rawKind ); }
@Test public void tetstRandomKind_whichValue() { Assert.assertNull( RandomKind.whichValue( null )); Assert.assertNull( RandomKind.whichValue( "" )); Assert.assertEquals( RandomKind.PORT, RandomKind.whichValue( "port" )); Assert.assertEquals( RandomKind.PORT, RandomKind.whichValue( "pOrt" )); } }