@Test public void testAddValuePrimitive() { int paramValue = this.random.nextInt(); paramSource.addValue(paramName, paramValue); assertEquals( "wrong value returned from parameter source", paramValue, paramSource.getValue(paramName)); }
@Test public void testAddValueEnumWithGetValue() { paramSource.addValue(paramName, TestEnumWithGetValue.TWO); assertEquals( "wrong value returned from parameter source", TestEnumWithGetValue.TWO.getValue(), paramSource.getValue(paramName)); }
@Test public void testAddValueVersion() { Version verision = new Version(this.random.nextInt(), this.random.nextInt()); paramSource.addValue(paramName, verision); assertEquals( "wrong value returned from parameter source", verision.toString(), paramSource.getValue(paramName)); }
@Test public void testAddValueGuid() { Guid guid = new Guid(UUID.randomUUID()); paramSource.addValue(paramName, guid); assertEquals( "wrong value returned from parameter source", guid.getUuid(), paramSource.getValue(paramName)); }
@Test public void testAddValueNull() { paramSource.addValue(paramName, null); assertNull("wrong value returned from parameter source", paramSource.getValue(paramName)); }