@Test public void testBuildsDefaultPersistenceConfig_whenNoPersistenceConfigInPom() throws Exception { Mojo mojo = rule.lookupMojo("evaluate", "src/test/resources/persistence/no_persistence_pom.xml"); assertNotNull(mojo); RREvaluateMojo rreMojo = (RREvaluateMojo) mojo; PersistenceConfiguration persist = rreMojo.getPersistence(); assertNotNull(persist); assertFalse(persist.isUseTimestampAsVersion()); assertEquals(persist.getHandlers().size(), 1); assertTrue(persist.getHandlers().containsKey("json")); assertTrue(persist.getHandlerConfiguration().containsKey("json")); }
PersistenceConfiguration getPersistence() { return persistence; }
RREvaluateMojo extends AbstractMojo { PersistenceConfiguration getPersistence() { return persistence; } }
RREvaluateMojo extends AbstractMojo { PersistenceConfiguration getPersistence() { return persistence; }  }
RREvaluateMojo extends AbstractMojo { PersistenceConfiguration getPersistence() { return persistence; }  @Override void execute(); }
RREvaluateMojo extends AbstractMojo { PersistenceConfiguration getPersistence() { return persistence; }  @Override void execute();  }