@Test public void testCurrDirListener() throws Exception { JobMeta meta = mock( JobMeta.class ); JobEntryJob jej = getJobEntryJob(); jej.setParentJobMeta( null ); jej.setParentJobMeta( meta ); jej.setParentJobMeta( null ); verify( meta, times( 1 ) ).addCurrentDirectoryChangedListener( any() ); verify( meta, times( 1 ) ).removeCurrentDirectoryChangedListener( any() ); }
@Override public void setParentJobMeta( JobMeta parentJobMeta ) { JobMeta previous = getParentJobMeta(); super.setParentJobMeta( parentJobMeta ); if ( previous != null ) { previous.removeCurrentDirectoryChangedListener( this.dirListener ); } if ( parentJobMeta != null ) { parentJobMeta.addCurrentDirectoryChangedListener( this.dirListener ); } }
JobEntryJob extends JobEntryBase implements Cloneable, JobEntryInterface, HasRepositoryDirectories, JobEntryRunConfigurableInterface { @Override public void setParentJobMeta( JobMeta parentJobMeta ) { JobMeta previous = getParentJobMeta(); super.setParentJobMeta( parentJobMeta ); if ( previous != null ) { previous.removeCurrentDirectoryChangedListener( this.dirListener ); } if ( parentJobMeta != null ) { parentJobMeta.addCurrentDirectoryChangedListener( this.dirListener ); } } }
JobEntryJob extends JobEntryBase implements Cloneable, JobEntryInterface, HasRepositoryDirectories, JobEntryRunConfigurableInterface { @Override public void setParentJobMeta( JobMeta parentJobMeta ) { JobMeta previous = getParentJobMeta(); super.setParentJobMeta( parentJobMeta ); if ( previous != null ) { previous.removeCurrentDirectoryChangedListener( this.dirListener ); } if ( parentJobMeta != null ) { parentJobMeta.addCurrentDirectoryChangedListener( this.dirListener ); } } JobEntryJob( String name );  JobEntryJob(); }
JobEntryJob extends JobEntryBase implements Cloneable, JobEntryInterface, HasRepositoryDirectories, JobEntryRunConfigurableInterface { @Override public void setParentJobMeta( JobMeta parentJobMeta ) { JobMeta previous = getParentJobMeta(); super.setParentJobMeta( parentJobMeta ); if ( previous != null ) { previous.removeCurrentDirectoryChangedListener( this.dirListener ); } if ( parentJobMeta != null ) { parentJobMeta.addCurrentDirectoryChangedListener( this.dirListener ); } } JobEntryJob( String name );  JobEntryJob(); @Override Object clone(); void setFileName( String n ); @Deprecated String getFileName(); @Override String getFilename(); @Override String getRealFilename(); void setJobName( String jobname ); String getJobName(); String getDirectory(); void setDirectory( String directory ); @Override String[] getDirectories(); @Override void setDirectories( String[] directories ); boolean isPassingExport(); void setPassingExport( boolean passingExport ); String getRunConfiguration(); void setRunConfiguration( String runConfiguration ); String getLogFilename(); @Override String getXML(); @Override void loadXML( Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers,
    Repository rep, IMetaStore metaStore ); @Override void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases,
    List<SlaveServer> slaveServers ); @Override void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_job ); @Override Result execute( Result result, int nr ); @Override void clear(); @Override boolean evaluates(); @Override boolean isUnconditional(); @Override List<SQLStatement> getSQLStatements( Repository repository, IMetaStore metaStore, VariableSpace space ); @Deprecated JobMeta getJobMeta( Repository rep, VariableSpace space ); JobMeta getJobMeta( Repository rep, IMetaStore metaStore, VariableSpace space ); boolean isExecPerRow(); void setExecPerRow( boolean runEveryResultRow ); @Override List<ResourceReference> getResourceDependencies( JobMeta jobMeta ); @Override String exportResources( VariableSpace space, Map<String, ResourceDefinition> definitions,
    ResourceNamingInterface namingInterface, Repository repository, IMetaStore metaStore ); @Override void check( List<CheckResultInterface> remarks, JobMeta jobMeta, VariableSpace space,
    Repository repository, IMetaStore metaStore ); static void main( String[] args ); String getRemoteSlaveServerName(); void setRemoteSlaveServerName( String remoteSlaveServerName ); boolean isWaitingToFinish(); void setWaitingToFinish( boolean waitingToFinish ); boolean isFollowingAbortRemotely(); void setFollowingAbortRemotely( boolean followingAbortRemotely ); void setLoggingRemoteWork( boolean loggingRemoteWork ); boolean isPassingAllParameters(); void setPassingAllParameters( boolean passingAllParameters ); Job getJob(); ObjectId getJobObjectId(); void setJobObjectId( ObjectId jobObjectId ); ObjectLocationSpecificationMethod getSpecificationMethod(); @Override ObjectLocationSpecificationMethod[] getSpecificationMethods(); void setSpecificationMethod( ObjectLocationSpecificationMethod specificationMethod ); @Override boolean hasRepositoryReferences(); @Override void lookupRepositoryReferences( Repository repository ); @Override boolean[] isReferencedObjectEnabled(); @Override String[] getReferencedObjectDescriptions(); @Override Object loadReferencedObject( int index, Repository rep, IMetaStore metaStore, VariableSpace space ); boolean isExpandingRemoteJob(); void setExpandingRemoteJob( boolean expandingRemoteJob ); @Override void setParentJobMeta( JobMeta parentJobMeta ); }
JobEntryJob extends JobEntryBase implements Cloneable, JobEntryInterface, HasRepositoryDirectories, JobEntryRunConfigurableInterface { @Override public void setParentJobMeta( JobMeta parentJobMeta ) { JobMeta previous = getParentJobMeta(); super.setParentJobMeta( parentJobMeta ); if ( previous != null ) { previous.removeCurrentDirectoryChangedListener( this.dirListener ); } if ( parentJobMeta != null ) { parentJobMeta.addCurrentDirectoryChangedListener( this.dirListener ); } } JobEntryJob( String name );  JobEntryJob(); @Override Object clone(); void setFileName( String n ); @Deprecated String getFileName(); @Override String getFilename(); @Override String getRealFilename(); void setJobName( String jobname ); String getJobName(); String getDirectory(); void setDirectory( String directory ); @Override String[] getDirectories(); @Override void setDirectories( String[] directories ); boolean isPassingExport(); void setPassingExport( boolean passingExport ); String getRunConfiguration(); void setRunConfiguration( String runConfiguration ); String getLogFilename(); @Override String getXML(); @Override void loadXML( Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers,
    Repository rep, IMetaStore metaStore ); @Override void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases,
    List<SlaveServer> slaveServers ); @Override void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_job ); @Override Result execute( Result result, int nr ); @Override void clear(); @Override boolean evaluates(); @Override boolean isUnconditional(); @Override List<SQLStatement> getSQLStatements( Repository repository, IMetaStore metaStore, VariableSpace space ); @Deprecated JobMeta getJobMeta( Repository rep, VariableSpace space ); JobMeta getJobMeta( Repository rep, IMetaStore metaStore, VariableSpace space ); boolean isExecPerRow(); void setExecPerRow( boolean runEveryResultRow ); @Override List<ResourceReference> getResourceDependencies( JobMeta jobMeta ); @Override String exportResources( VariableSpace space, Map<String, ResourceDefinition> definitions,
    ResourceNamingInterface namingInterface, Repository repository, IMetaStore metaStore ); @Override void check( List<CheckResultInterface> remarks, JobMeta jobMeta, VariableSpace space,
    Repository repository, IMetaStore metaStore ); static void main( String[] args ); String getRemoteSlaveServerName(); void setRemoteSlaveServerName( String remoteSlaveServerName ); boolean isWaitingToFinish(); void setWaitingToFinish( boolean waitingToFinish ); boolean isFollowingAbortRemotely(); void setFollowingAbortRemotely( boolean followingAbortRemotely ); void setLoggingRemoteWork( boolean loggingRemoteWork ); boolean isPassingAllParameters(); void setPassingAllParameters( boolean passingAllParameters ); Job getJob(); ObjectId getJobObjectId(); void setJobObjectId( ObjectId jobObjectId ); ObjectLocationSpecificationMethod getSpecificationMethod(); @Override ObjectLocationSpecificationMethod[] getSpecificationMethods(); void setSpecificationMethod( ObjectLocationSpecificationMethod specificationMethod ); @Override boolean hasRepositoryReferences(); @Override void lookupRepositoryReferences( Repository repository ); @Override boolean[] isReferencedObjectEnabled(); @Override String[] getReferencedObjectDescriptions(); @Override Object loadReferencedObject( int index, Repository rep, IMetaStore metaStore, VariableSpace space ); boolean isExpandingRemoteJob(); void setExpandingRemoteJob( boolean expandingRemoteJob ); @Override void setParentJobMeta( JobMeta parentJobMeta ); public String[] arguments; public boolean argFromPrevious; public boolean paramsFromPrevious; public boolean execPerRow; public String[] parameters; public String[] parameterFieldNames; public String[] parameterValues; public boolean setLogfile; public String logfile; public boolean addDate; public LogLevel logFileLevel; public boolean parallel; public boolean setAppendLogfile; public boolean createParentFolder; public boolean waitingToFinish; public boolean followingAbortRemotely; public boolean expandingRemoteJob; public boolean passingAllParameters; static final LogLevel DEFAULT_LOG_LEVEL; }