Patch for redundancy removal
authorCharles Ofoegbu <tcnofoegbu@ls29711.local>
Mon, 27 Oct 2014 11:51:29 +0000 (11:51 +0000)
committerCharles Ofoegbu <tcnofoegbu@ls29711.local>
Mon, 27 Oct 2014 11:51:29 +0000 (11:51 +0000)
src/jalview/gui/RedundancyPanel.java
test/jalview/ws/jabaws/MinJabawsClientTests.java

index 1fcd875..f73e568 100755 (executable)
@@ -245,8 +245,7 @@ public class RedundancyPanel extends GSliderPanel implements Runnable
       ap.alignFrame.addHistoryItem(cut);
 
       PaintRefresher.Refresh(this, ap.av.getSequenceSetId(), true, true);
-      // ap.av.firePropertyChange("alignment", null, ap.av.getAlignment()
-      // .getSequences());
+       ap.av.firePropertyChange("alignment", null, ap.av.getAlignment().getSequences());
     }
 
   }
index a938dd6..b55e8ee 100644 (file)
@@ -5,7 +5,6 @@ import static org.junit.Assert.fail;
 
 import java.util.ArrayList;
 import java.util.List;
-import java.util.function.Consumer;
 
 import org.junit.Test;
 
@@ -69,14 +68,11 @@ public class MinJabawsClientTests {
                                                "Mismatch in number of input and result sequences - assume alignment service wasn't interacted with correctly",
                                                msaservice.getResult(jobid).getSequences().size(),
                                                iseqs.size());
-                               msaservice.getResult(jobid).getSequences()
-                                               .forEach(new Consumer<FastaSequence>() {
-                                                       @Override
-                                                       public void accept(FastaSequence t) {
-                                                               System.out.println(">"+t.getId());
-                                                               System.out.println(t.getFormattedFasta());
-                                                       }
-                                               });
+                               List<FastaSequence> seqList = msaservice.getResult(jobid).getSequences();
+                               for(FastaSequence fSeq : seqList){
+                                       System.out.println(">"+fSeq.getId());
+                                       System.out.println(fSeq.getFormattedFasta());
+                               }
                        }
 
                }