コード例 #1
0
 @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);
 }
コード例 #2
0
 @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);
 }