@Test public void uiOmmitedConfigGroovy() throws Exception { final File cassandraDslFile = new File(CORRUPTED_RESOURCES_PATH + "cassandra_UI_ommited-service.groovy"); final File cassandraWorkDir = new File(CORRUPTED_RESOURCES_PATH); final Service service = ServiceReader.getServiceFromFile(cassandraDslFile, cassandraWorkDir).getService(); assertNotNull(service); assertNull(service.getUserInterface()); ServiceTestUtil.validateName(service, nameInGroovy); ServiceTestUtil.validateIcon(service, CORRUPTED_RESOURCES_PATH); }
@Test public void minConfigedGroovy() throws Exception { final File cassandraDslFile = new File(CORRUPTED_RESOURCES_PATH + "cassandra_bare_essentials-service.groovy"); final File cassandraWorkDir = new File(CORRUPTED_RESOURCES_PATH); final Service service = ServiceReader.getServiceFromFile(cassandraDslFile, cassandraWorkDir).getService(); assertNotNull(service); ServiceTestUtil.validateName(service, nameInGroovy); }