@Test public void testSetNames() { Assert.assertNotNull( this.plugin.agentId ); this.plugin.agentId = null; Assert.assertNull( this.plugin.agentId ); this.plugin.setNames( "app", null ); Assert.assertNotNull( this.plugin.agentId ); this.plugin.setNames( null, "test" ); Assert.assertNotNull( this.plugin.agentId ); }
@Override public void setNames( String applicationName, String scopedInstancePath ) { this.applicationName = applicationName; this.scopedInstancePath = scopedInstancePath; this.agentId = "'" + scopedInstancePath + "' agent"; }
PluginPuppet implements PluginInterface { @Override public void setNames( String applicationName, String scopedInstancePath ) { this.applicationName = applicationName; this.scopedInstancePath = scopedInstancePath; this.agentId = "'" + scopedInstancePath + "' agent"; } }
PluginPuppet implements PluginInterface { @Override public void setNames( String applicationName, String scopedInstancePath ) { this.applicationName = applicationName; this.scopedInstancePath = scopedInstancePath; this.agentId = "'" + scopedInstancePath + "' agent"; }  }
PluginPuppet implements PluginInterface { @Override public void setNames( String applicationName, String scopedInstancePath ) { this.applicationName = applicationName; this.scopedInstancePath = scopedInstancePath; this.agentId = "'" + scopedInstancePath + "' agent"; }  @Override String getPluginName(); @Override void setNames( String applicationName, String scopedInstancePath ); @Override void initialize( Instance instance ); @Override void deploy( Instance instance ); @Override void start( Instance instance ); @Override void update(Instance instance, Import importChanged, InstanceStatus statusChanged); @Override void stop( Instance instance ); @Override void undeploy( Instance instance ); }
PluginPuppet implements PluginInterface { @Override public void setNames( String applicationName, String scopedInstancePath ) { this.applicationName = applicationName; this.scopedInstancePath = scopedInstancePath; this.agentId = "'" + scopedInstancePath + "' agent"; }  @Override String getPluginName(); @Override void setNames( String applicationName, String scopedInstancePath ); @Override void initialize( Instance instance ); @Override void deploy( Instance instance ); @Override void start( Instance instance ); @Override void update(Instance instance, Import importChanged, InstanceStatus statusChanged); @Override void stop( Instance instance ); @Override void undeploy( Instance instance ); static final String PLUGIN_NAME; }