Property { public boolean isNumber() { boolean isNumber = false; if (type.equals(Integer.TYPE)) { isNumber = true; } else if (type.equals(Long.TYPE)) { isNumber = true; } else if (type.equals(Double.TYPE)) { isNumber = true; } else if (type.equals(Float.TYPE)) { isNumber = true; } else if (type.equals(Byte.TYPE)) { isNumber = true; } else if (type.equals(Short.TYPE)) { isNumber = true; } return isNumber; } Property(Module module, String name, Class<?> type, Method getter, Method setter,
			Iterable<Annotation> annotations); String getInfo(); void setInfo(String info); int getOrder(); void setOrder(int order); String getName(); Class<?> getType(); Method getGetter(); Method getSetter(); void addRequirement(Requirement requirement); boolean isActive(); Collection<Requirement> getRequirements(); Object getValue(); void setValue(Object value); void setValue(String value); boolean isNumber(); Collection<Annotation> getAnnotations(); @SuppressWarnings("unchecked") A getAnnotation(Class<? extends A> clazz);  }
@Test public void isNumberChar() { Property p = new Property(new MyModuleMock(), null, Character.TYPE, null, null, Collections.<Annotation> emptySet()); Assert.assertFalse(p.isNumber()); }
@Test public void isNumberInt() { Property p = new Property(new MyModuleMock(), null, Integer.TYPE, null, null, Collections.<Annotation> emptySet()); Assert.assertTrue(p.isNumber()); }
@Test public void isNumberLong() { Property p = new Property(new MyModuleMock(), null, Long.TYPE, null, null, Collections.<Annotation> emptySet()); Assert.assertTrue(p.isNumber()); }
@Test public void isNumberDouble() { Property p = new Property(new MyModuleMock(), null, Double.TYPE, null, null, Collections.<Annotation> emptySet()); Assert.assertTrue(p.isNumber()); }
@Test public void isNumberFloat() { Property p = new Property(new MyModuleMock(), null, Float.TYPE, null, null, Collections.<Annotation> emptySet()); Assert.assertTrue(p.isNumber()); }
@Test public void isNumberByte() { Property p = new Property(new MyModuleMock(), null, Byte.TYPE, null, null, Collections.<Annotation> emptySet()); Assert.assertTrue(p.isNumber()); }
@Test public void isNumberShort() { Property p = new Property(new MyModuleMock(), null, Short.TYPE, null, null, Collections.<Annotation> emptySet()); Assert.assertTrue(p.isNumber()); }