JAL-1645 source formatting and organise imports
[jalview.git] / test / jalview / gui / PaintRefresherTest.java
index 1705e90..b7b21fa 100644 (file)
@@ -22,7 +22,7 @@ import org.testng.annotations.Test;
 public class PaintRefresherTest
 {
   // TODO would prefer PaintRefresher to be a single rather than static
- @BeforeMethod(alwaysRun = true)
+  @BeforeMethod(alwaysRun = true)
   public void setUp()
   {
     PaintRefresher.components.clear();
@@ -34,7 +34,7 @@ public class PaintRefresherTest
     PaintRefresher.components.clear();
   }
 
-  @Test(groups ={ "Functional" })
+  @Test(groups = { "Functional" })
   public void testRegister()
   {
     JPanel jp = new JPanel();
@@ -60,11 +60,11 @@ public class PaintRefresherTest
     assertTrue(registered.get("44").contains(jp4));
   }
 
-  @Test(groups ={ "Functional" })
+  @Test(groups = { "Functional" })
   public void testRemoveComponent()
   {
     Map<String, List<Component>> registered = PaintRefresher.components;
-    
+
     // no error with an empty PaintRefresher
     JPanel jp = new JPanel();
     JPanel jp2 = new JPanel();
@@ -92,10 +92,10 @@ public class PaintRefresherTest
     assertTrue(registered.get("22").contains(jp2));
   }
 
-  @Test(groups ={ "Functional" })
+  @Test(groups = { "Functional" })
   public void testGetAssociatedPanels()
   {
-    SequenceI [] seqs = new SequenceI[]{new Sequence("", "ABC")};
+    SequenceI[] seqs = new SequenceI[] { new Sequence("", "ABC") };
     Alignment al = new Alignment(seqs);
 
     /*
@@ -110,7 +110,7 @@ public class PaintRefresherTest
             .getSequenceSetId());
     assertEquals(1, panels.length);
     assertSame(ap1, panels[0]);
-    
+
     panels = PaintRefresher.getAssociatedPanels(av.getSequenceSetId() + 1);
     assertEquals(0, panels.length);
   }