@Test public void attributeTest() throws IOException, XmlPullParserException { Model pomModel = getOriginalPomModel("pom.xml"); Mockito.when(transformationContext.get("ATT")).thenReturn(pomModel); Mockito.when(transformationContext.contains("ATT")).thenReturn(true); PomGetPackaging pomGetPackaging = new PomGetPackaging("ATT"); assertEquals(pomGetPackaging.getDescription(), "Retrieve the packaging of specified Maven POM module"); TUExecutionResult executionResult = pomGetPackaging.execution(transformedAppFolder, transformationContext); assertEquals(executionResult.getType(), TUExecutionResult.Type.VALUE); assertEquals(executionResult.getValue(), "jar"); }
@Override public String getDescription() { return String.format(DESCRIPTION); }
PomGetPackaging extends AbstractPomGetUtility<PomGetPackaging> { @Override public String getDescription() { return String.format(DESCRIPTION); } }
PomGetPackaging extends AbstractPomGetUtility<PomGetPackaging> { @Override public String getDescription() { return String.format(DESCRIPTION); } PomGetPackaging();  PomGetPackaging(String modelAttributeName); }
PomGetPackaging extends AbstractPomGetUtility<PomGetPackaging> { @Override public String getDescription() { return String.format(DESCRIPTION); } PomGetPackaging();  PomGetPackaging(String modelAttributeName); @Override String getDescription(); }
PomGetPackaging extends AbstractPomGetUtility<PomGetPackaging> { @Override public String getDescription() { return String.format(DESCRIPTION); } PomGetPackaging();  PomGetPackaging(String modelAttributeName); @Override String getDescription();  }