/** * {@inheritDoc} */ @Override public PropertyPathStart getPropertyPathStart() { PropertyPathStart propertyPathStart = new PropertyPathStart(); propertyPathStart.setSignaturePosition(index); propertyPathStart.setName(getDisplayName()); propertyPathStart.setContentType(ParameterContentType.PARAM); addPaths(propertyPathStart); return propertyPathStart; }
@Test(expectedExceptions = { PropertyAccessException.class }) public void missingContentType() throws PropertyAccessException { PropertyPathStart start = new PropertyPathStart(); start.setName("name"); start.setSignaturePosition(0); propertyAccessor.getPropertyContent(start, null, null, null, false); }
@Test(expectedExceptions = { PropertyAccessException.class }) public void nullNeededParameterObject() throws PropertyAccessException { PropertyPathStart start = new PropertyPathStart(); start.setName("name"); start.setSignaturePosition(0); start.setContentType(ParameterContentType.PARAM); propertyAccessor.getPropertyContent(start, null, null, resultValueMock, false); Mockito.verifyZeroInteractions(resultValueMock); }
@Test(expectedExceptions = { PropertyAccessException.class }) public void parameterArrayOutOfRange() throws PropertyAccessException { PropertyPathStart start = new PropertyPathStart(); start.setName("name"); start.setSignaturePosition(0); start.setContentType(ParameterContentType.PARAM); propertyAccessor.getPropertyContent(start, null, new Object[0], resultValueMock, false); Mockito.verifyZeroInteractions(resultValueMock); }
start.setSignaturePosition(0); start.setContentType(ParameterContentType.PARAM); PropertyPath pathOne = new PropertyPath("child"); start.setSignaturePosition(1); start.setContentType(ParameterContentType.PARAM); pathOne = new PropertyPath("child");
start.setSignaturePosition(0); start.setContentType(ParameterContentType.PARAM); PropertyPath pathOne = new PropertyPath("child"); start.setSignaturePosition(1); start.setContentType(ParameterContentType.PARAM); pathOne = new PropertyPath("child");
start.setSignaturePosition(1); start.setContentType(ParameterContentType.PARAM);