@Test public void test70() { Map<TargetStepAttribute, SourceStepField> targetSourceMapping = new HashMap<>(); TargetStepAttribute target = new TargetStepAttribute( "step", "SCHENAMENAMEFIELD", true ); SourceStepField source = new SourceStepField( "step", "field" ); targetSourceMapping.put( target, source ); MetaInjectMigration.migrateFrom70( targetSourceMapping ); assertEquals( 1, targetSourceMapping.size() ); TargetStepAttribute target2 = targetSourceMapping.keySet().iterator().next(); assertEquals( "SCHEMANAMEFIELD", target2.getAttributeKey() ); assertEquals( target.getStepname(), target2.getStepname() ); assertEquals( target.isDetail(), target2.isDetail() ); assertEquals( source, targetSourceMapping.get( target2 ) ); }
public static void migrateFrom70( Map<TargetStepAttribute, SourceStepField> targetSourceMapping ) { for ( TargetStepAttribute target : new ArrayList<>( targetSourceMapping.keySet() ) ) { if ( "SCHENAMENAMEFIELD".equals( target.getAttributeKey() ) ) { SourceStepField so = targetSourceMapping.remove( target ); TargetStepAttribute target2 = new TargetStepAttribute( target.getStepname(), "SCHEMANAMEFIELD", target.isDetail() ); targetSourceMapping.put( target2, so ); } } }
MetaInjectMigration { public static void migrateFrom70( Map<TargetStepAttribute, SourceStepField> targetSourceMapping ) { for ( TargetStepAttribute target : new ArrayList<>( targetSourceMapping.keySet() ) ) { if ( "SCHENAMENAMEFIELD".equals( target.getAttributeKey() ) ) { SourceStepField so = targetSourceMapping.remove( target ); TargetStepAttribute target2 = new TargetStepAttribute( target.getStepname(), "SCHEMANAMEFIELD", target.isDetail() ); targetSourceMapping.put( target2, so ); } } } }
MetaInjectMigration { public static void migrateFrom70( Map<TargetStepAttribute, SourceStepField> targetSourceMapping ) { for ( TargetStepAttribute target : new ArrayList<>( targetSourceMapping.keySet() ) ) { if ( "SCHENAMENAMEFIELD".equals( target.getAttributeKey() ) ) { SourceStepField so = targetSourceMapping.remove( target ); TargetStepAttribute target2 = new TargetStepAttribute( target.getStepname(), "SCHEMANAMEFIELD", target.isDetail() ); targetSourceMapping.put( target2, so ); } } }  }
MetaInjectMigration { public static void migrateFrom70( Map<TargetStepAttribute, SourceStepField> targetSourceMapping ) { for ( TargetStepAttribute target : new ArrayList<>( targetSourceMapping.keySet() ) ) { if ( "SCHENAMENAMEFIELD".equals( target.getAttributeKey() ) ) { SourceStepField so = targetSourceMapping.remove( target ); TargetStepAttribute target2 = new TargetStepAttribute( target.getStepname(), "SCHEMANAMEFIELD", target.isDetail() ); targetSourceMapping.put( target2, so ); } } }  static void migrateFrom70( Map<TargetStepAttribute, SourceStepField> targetSourceMapping ); }
MetaInjectMigration { public static void migrateFrom70( Map<TargetStepAttribute, SourceStepField> targetSourceMapping ) { for ( TargetStepAttribute target : new ArrayList<>( targetSourceMapping.keySet() ) ) { if ( "SCHENAMENAMEFIELD".equals( target.getAttributeKey() ) ) { SourceStepField so = targetSourceMapping.remove( target ); TargetStepAttribute target2 = new TargetStepAttribute( target.getStepname(), "SCHEMANAMEFIELD", target.isDetail() ); targetSourceMapping.put( target2, so ); } } }  static void migrateFrom70( Map<TargetStepAttribute, SourceStepField> targetSourceMapping );  }