DataServiceMeta implements MetaStoreElement { public boolean isUserDefined() { return userDefined; } 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 testSaveUserDefined() { try { transMeta.setAttribute( DATA_SERVICE_STEP, DataServiceMeta.IS_USER_DEFINED, ( dataService.isUserDefined() ? "Y" : "N" ) ); String xml = transMeta.getXML(); assertTrue( patternSaveUserDefined.matcher( xml ).find() ); } catch ( Exception ex ) { fail(); } }