DataServiceMeta implements MetaStoreElement { @Override public String toString() { return Objects.toStringHelper( this ) .add( "name", name ) .add( "serviceTrans", serviceTrans ) .add( "stepname", stepname ) .add( "userDefined", userDefined ) .add( "streaming", streaming ) .add( "rowLimit", rowLimit ) .add( "timeLimit", timeLimit ) .add( "pushDownOptimizationMeta", pushDownOptimizationMeta ) .toString(); } DataServiceMeta( TransMeta serviceTrans );  DataServiceMeta( TransMeta serviceTrans, boolean streaming ); @Deprecated  DataServiceMeta(); @Override String getName(); @Override void setName( String name ); TransMeta getServiceTrans(); void setServiceTrans( TransMeta serviceTrans ); String getStepname(); void setStepname( String stepname ); List<PushDownOptimizationMeta> getPushDownOptimizationMeta(); void setPushDownOptimizationMeta( List<PushDownOptimizationMeta> pushDownOptimizationMeta ); boolean isUserDefined(); void setUserDefined( final boolean userDefined ); boolean isStreaming(); void setStreaming( final boolean streaming ); int getRowLimit(); void setRowLimit( int rowLimit ); long getTimeLimit(); void setTimeLimit( long timeLimit ); @Override String toString(); static final String DATA_SERVICE_TRANSFORMATION_STEP_NAME; static final String PUSH_DOWN_OPT_META; static final String IS_USER_DEFINED; static final String IS_STREAMING; static final String ROW_LIMIT; static final String TIME_LIMIT; }
@Test public void testToString() { String result = "DataServiceMeta{name=DataService, serviceTrans=/DataService, stepname=Data Service Step," + " userDefined=true, streaming=true, rowLimit=100, timeLimit=200," + " pushDownOptimizationMeta=pushDownOptimizations}"; dataService.setStreaming( true ); dataService.setRowLimit( 100 ); dataService.setTimeLimit( 200L ); dataService.setPushDownOptimizationMeta( pushDownOptimizations ); assertEquals( result, dataService.toString() ); }