@Test public void testInitialize_withVersion() throws Exception { Assume.assumeTrue( this.running ); copyResources( "/with-version" ); File[] subFiles = this.instanceDirectory.listFiles(); Assert.assertNotNull( subFiles ); Assert.assertEquals( 1, subFiles.length ); File moduleDirectory = new File( this.instanceDirectory, "sysctl" ); Assert.assertFalse( moduleDirectory.exists()); this.plugin.initialize( this.inst ); subFiles = this.instanceDirectory.listFiles(); Assert.assertNotNull( subFiles ); Assert.assertEquals( 2, subFiles.length ); Assert.assertTrue( moduleDirectory.exists()); Assert.assertTrue( moduleDirectory.isDirectory()); }
@Override public void initialize( Instance instance ) throws PluginException { this.logger.fine( this.agentId + " is initializing the plug-in for " + instance.getName()); try { installPuppetModules( instance ); } catch( Exception e ) { throw new PluginException( e ); } }
PluginPuppet implements PluginInterface { @Override public void initialize( Instance instance ) throws PluginException { this.logger.fine( this.agentId + " is initializing the plug-in for " + instance.getName()); try { installPuppetModules( instance ); } catch( Exception e ) { throw new PluginException( e ); } } }
PluginPuppet implements PluginInterface { @Override public void initialize( Instance instance ) throws PluginException { this.logger.fine( this.agentId + " is initializing the plug-in for " + instance.getName()); try { installPuppetModules( instance ); } catch( Exception e ) { throw new PluginException( e ); } }  }
PluginPuppet implements PluginInterface { @Override public void initialize( Instance instance ) throws PluginException { this.logger.fine( this.agentId + " is initializing the plug-in for " + instance.getName()); try { installPuppetModules( instance ); } catch( Exception e ) { throw new PluginException( e ); } }  @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 initialize( Instance instance ) throws PluginException { this.logger.fine( this.agentId + " is initializing the plug-in for " + instance.getName()); try { installPuppetModules( instance ); } catch( Exception e ) { throw new PluginException( e ); } }  @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; }