@Test public void testInitialize_withoutVersion() throws Exception { Assume.assumeTrue( this.running ); copyResources( "/without-version" ); File[] moduleDirectories = new File[ 2 ]; moduleDirectories[ 0 ] = new File( this.instanceDirectory, "sysctl" ); moduleDirectories[ 1 ] = new File( this.instanceDirectory, "redis" ); for( File f : moduleDirectories ) Assert.assertFalse( f.getAbsolutePath(), f.exists()); this.plugin.initialize( this.inst ); for( File f : moduleDirectories ) { Assert.assertTrue( f.getAbsolutePath(), f.exists()); Assert.assertTrue( f.getAbsolutePath(), f.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; }