@Test public void testInstanceExists() { Assert.assertTrue( this.context.instanceExists( "/tomcat-vm" )); Assert.assertTrue( this.context.instanceExists( "/tomcat-vm/tomcat-server" )); Assert.assertFalse( this.context.instanceExists( "/tomcat-vm/invalid" )); Assert.assertFalse( this.context.instanceExists( "invalid" )); }
public boolean instanceExists( String instancePath ) { Instance instance = resolveInstance( instancePath ); return instance != null; }
Context { public boolean instanceExists( String instancePath ) { Instance instance = resolveInstance( instancePath ); return instance != null; } }
Context { public boolean instanceExists( String instancePath ) { Instance instance = resolveInstance( instancePath ); return instance != null; } Context( AbstractApplication app, File commandFile ); }
Context { public boolean instanceExists( String instancePath ) { Instance instance = resolveInstance( instancePath ); return instance != null; } Context( AbstractApplication app, File commandFile ); boolean instanceExists( String instancePath ); Instance resolveInstance( String instancePath ); }
Context { public boolean instanceExists( String instancePath ) { Instance instance = resolveInstance( instancePath ); return instance != null; } Context( AbstractApplication app, File commandFile ); boolean instanceExists( String instancePath ); Instance resolveInstance( String instancePath ); final Map<String,String> instancePathToComponentName; final Map<String,String> variables; final Set<String> disabledVariables; }