@Test public void testGetXML() throws KettleException { SlaveServerTransStatus transStatus = new SlaveServerTransStatus(); RowMetaAndData rowMetaAndData = new RowMetaAndData(); String testData = "testData"; rowMetaAndData.addValue( new ValueMetaString(), testData ); List<RowMetaAndData> rows = new ArrayList<>(); rows.add( rowMetaAndData ); Result result = new Result(); result.setRows( rows ); transStatus.setResult( result ); Assert.assertFalse( transStatus.getXML().contains( testData ) ); Assert.assertTrue( transStatus.getXML( true ).contains( testData ) ); }
public String getXML() throws KettleException { boolean sendResultXmlWithStatus = EnvUtil.getSystemProperty( "KETTLE_COMPATIBILITY_SEND_RESULT_XML_WITH_FULL_STATUS", "N" ).equalsIgnoreCase( "Y" ); return getXML( sendResultXmlWithStatus ); }
SlaveServerTransStatus { public String getXML() throws KettleException { boolean sendResultXmlWithStatus = EnvUtil.getSystemProperty( "KETTLE_COMPATIBILITY_SEND_RESULT_XML_WITH_FULL_STATUS", "N" ).equalsIgnoreCase( "Y" ); return getXML( sendResultXmlWithStatus ); } }
SlaveServerTransStatus { public String getXML() throws KettleException { boolean sendResultXmlWithStatus = EnvUtil.getSystemProperty( "KETTLE_COMPATIBILITY_SEND_RESULT_XML_WITH_FULL_STATUS", "N" ).equalsIgnoreCase( "Y" ); return getXML( sendResultXmlWithStatus ); } SlaveServerTransStatus();  SlaveServerTransStatus( String transName, String id, String statusDescription );  SlaveServerTransStatus( Node transStatusNode ); }
SlaveServerTransStatus { public String getXML() throws KettleException { boolean sendResultXmlWithStatus = EnvUtil.getSystemProperty( "KETTLE_COMPATIBILITY_SEND_RESULT_XML_WITH_FULL_STATUS", "N" ).equalsIgnoreCase( "Y" ); return getXML( sendResultXmlWithStatus ); } SlaveServerTransStatus();  SlaveServerTransStatus( String transName, String id, String statusDescription );  SlaveServerTransStatus( Node transStatusNode ); String getXML(); String getXML( boolean sendResultXmlWithStatus ); static SlaveServerTransStatus fromXML( String xml ); String getStatusDescription(); void setStatusDescription( String statusDescription ); String getTransName(); void setTransName( String transName ); String getErrorDescription(); void setErrorDescription( String errorDescription ); List<StepStatus> getStepStatusList(); void setStepStatusList( List<StepStatus> stepStatusList ); String getLoggingString(); void setLoggingString( String loggingString ); boolean isRunning(); boolean isStopped(); boolean isWaiting(); long getNrStepErrors(); Result getResult( TransMeta transMeta ); Result getResult(); void setResult( Result result ); boolean isPaused(); void setPaused( boolean paused ); int getLastLoggingLineNr(); void setLastLoggingLineNr( int lastLoggingLineNr ); int getFirstLoggingLineNr(); void setFirstLoggingLineNr( int firstLoggingLineNr ); Date getLogDate(); void setLogDate( Date logDate ); String getId(); void setId( String id ); }
SlaveServerTransStatus { public String getXML() throws KettleException { boolean sendResultXmlWithStatus = EnvUtil.getSystemProperty( "KETTLE_COMPATIBILITY_SEND_RESULT_XML_WITH_FULL_STATUS", "N" ).equalsIgnoreCase( "Y" ); return getXML( sendResultXmlWithStatus ); } SlaveServerTransStatus();  SlaveServerTransStatus( String transName, String id, String statusDescription );  SlaveServerTransStatus( Node transStatusNode ); String getXML(); String getXML( boolean sendResultXmlWithStatus ); static SlaveServerTransStatus fromXML( String xml ); String getStatusDescription(); void setStatusDescription( String statusDescription ); String getTransName(); void setTransName( String transName ); String getErrorDescription(); void setErrorDescription( String errorDescription ); List<StepStatus> getStepStatusList(); void setStepStatusList( List<StepStatus> stepStatusList ); String getLoggingString(); void setLoggingString( String loggingString ); boolean isRunning(); boolean isStopped(); boolean isWaiting(); long getNrStepErrors(); Result getResult( TransMeta transMeta ); Result getResult(); void setResult( Result result ); boolean isPaused(); void setPaused( boolean paused ); int getLastLoggingLineNr(); void setLastLoggingLineNr( int lastLoggingLineNr ); int getFirstLoggingLineNr(); void setFirstLoggingLineNr( int firstLoggingLineNr ); Date getLogDate(); void setLogDate( Date logDate ); String getId(); void setId( String id ); static final String XML_TAG; }