@Test public void testInvalidDefaultValue() { GroupProxy group = mock(GroupProxy.class); Class testClass = Object.class; when(group.getProxiedGroup()).thenReturn(testClass); Property prop = mock(Property.class); String invalidMessage = "test invalid message"; ConstructionProblem.InvalidDefaultValue instance = new ConstructionProblem. InvalidDefaultValue(group, prop, invalidMessage); assertEquals(instance.getInvalidMessage(), invalidMessage); assertNotNull(instance.getProblemDescription()); assertEquals(instance.getBadPropertyCoord().getGroup(), testClass); assertEquals(instance.getBadPropertyCoord().getProperty(), prop); }
public PropertyCoord getBadPropertyCoord() { return badPropertyCoord; }
ConstructionProblem implements Problem { public PropertyCoord getBadPropertyCoord() { return badPropertyCoord; } }
ConstructionProblem implements Problem { public PropertyCoord getBadPropertyCoord() { return badPropertyCoord; }  }
ConstructionProblem implements Problem { public PropertyCoord getBadPropertyCoord() { return badPropertyCoord; }  PropertyCoord getRefPropertyCoord(); PropertyCoord getBadPropertyCoord(); @Override String getProblemContext(); @Override String getFullMessage(); }
ConstructionProblem implements Problem { public PropertyCoord getBadPropertyCoord() { return badPropertyCoord; }  PropertyCoord getRefPropertyCoord(); PropertyCoord getBadPropertyCoord(); @Override String getProblemContext(); @Override String getFullMessage();  }