@Test public void testPropertyNotPartOfGroup() { GroupProxy group = mock(GroupProxy.class); Class testClass = Object.class; when(group.getProxiedGroup()).thenReturn(testClass); Property prop = mock(Property.class); ConstructionProblem.PropertyNotPartOfGroup instance = new ConstructionProblem. PropertyNotPartOfGroup(group, prop); 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();  }