Changeset 7512


Ignore:
Timestamp:
01/11/11 21:29:08 (9 years ago)
Author:
aivar
Message:

Made the test plugin input and output names more meaningful.

Location:
branches/maven/projects/deep-zoom-plugin/src/test/java/loci/workflow
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/maven/projects/deep-zoom-plugin/src/test/java/loci/workflow/PluginWiringTest.java

    r7510 r7512  
    4444        workflow.add(module1); 
    4545        workflow.add(module2); 
    46         workflow.wire(module1, TestPlugin.ORANGE, module2, TestPlugin2.GREEN); 
    47         workflow.wire(module1, TestPlugin.PURPLE, module2, TestPlugin2.BLUE); 
     46        workflow.wire(module1, TestPlugin.LOWER, module2, TestPlugin2.SECOND); 
     47        workflow.wire(module1, TestPlugin.UPPER, module2, TestPlugin2.FIRST); 
    4848        workflow.finalize(); 
    4949 
  • branches/maven/projects/deep-zoom-plugin/src/test/java/loci/workflow/TestPlugin.java

    r7510 r7512  
    1818 */ 
    1919@Input 
    20 @Output({ @Img(TestPlugin.PURPLE), @Img(TestPlugin.ORANGE) }) 
     20@Output({ @Img(TestPlugin.UPPER), @Img(TestPlugin.LOWER) }) 
    2121public class TestPlugin extends AbstractPlugin implements IPlugin { 
    22     static final String PURPLE = "PURPLE"; 
    23     static final String ORANGE = "ORANGE"; 
     22    static final String UPPER = "UPPER"; 
     23    static final String LOWER = "LOWER"; 
    2424 
    2525    public void process() { 
     
    3131        ItemWrapper item2 = new ItemWrapper(string2); 
    3232        ItemWrapper item3 = new ItemWrapper(string3); 
    33         put(PURPLE, item2); 
    34         put(ORANGE, item3); 
     33        put(UPPER, item2); 
     34        put(LOWER, item3); 
    3535    } 
    3636} 
  • branches/maven/projects/deep-zoom-plugin/src/test/java/loci/workflow/TestPlugin2.java

    r7510 r7512  
    1717 * @author aivar 
    1818 */ 
    19 @Input({ @Img(TestPlugin2.BLUE), @Img(TestPlugin2.GREEN) } ) 
     19@Input({ @Img(TestPlugin2.FIRST), @Img(TestPlugin2.SECOND) } ) 
    2020@Output 
    2121public class TestPlugin2 extends AbstractPlugin implements IPlugin { 
    22     static final String BLUE = "BLUE"; 
    23     static final String GREEN = "GREEN"; 
     22    static final String FIRST = "FIRST"; 
     23    static final String SECOND = "SECOND"; 
    2424 
    2525    public void process() { 
    2626        System.out.println("In TestPlugin2"); 
    27         ItemWrapper item1 = get(BLUE); 
    28         ItemWrapper item2 = get(GREEN); 
     27        ItemWrapper item1 = get(FIRST); 
     28        ItemWrapper item2 = get(SECOND); 
    2929        String combinedString = interleave((String) item1.getItem(), (String) item2.getItem()); 
    3030        ItemWrapper item3 = new ItemWrapper(combinedString); 
Note: See TracChangeset for help on using the changeset viewer.