JAL-1645 Version-Rel Version 2.9 Year-Rel 2015 Licensing glob
[jalview.git] / test / jalview / gui / ProgressBarTest.java
index e50148c..cfbc62b 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9)
+ * Copyright (C) 2015 The Jalview Authors
+ * 
+ * This file is part of Jalview.
+ * 
+ * Jalview is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License 
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
+ *  
+ * Jalview is distributed in the hope that it will be useful, but 
+ * WITHOUT ANY WARRANTY; without even the implied warranty 
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
+ * PURPOSE.  See the GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
+ */
 package jalview.gui;
 
 import static org.testng.AssertJUnit.assertEquals;
@@ -20,7 +40,7 @@ public class ProgressBarTest
 
   private JLabel statusBar;
 
-  @Test(groups ={ "Functional" })
+  @Test(groups = { "Functional" })
   public void testConstructor_prematureInstantiation()
   {
     try
@@ -33,7 +53,7 @@ public class ProgressBarTest
     }
   }
 
-  @Test(groups ={ "Functional" })
+  @Test(groups = { "Functional" })
   public void testConstructor_wrongLayout()
   {
     statusPanel = new JPanel();
@@ -48,7 +68,7 @@ public class ProgressBarTest
     }
   }
 
-  @Test(groups ={ "Functional" })
+  @Test(groups = { "Functional" })
   public void testSetProgressBar()
   {
     statusPanel = new JPanel();
@@ -61,30 +81,26 @@ public class ProgressBarTest
      * Add 'hello'
      */
     pb.setProgressBar("hello", 1L);
-    verifyProgress(layout, new String[]
-    { "hello" });
+    verifyProgress(layout, new String[] { "hello" });
 
     /*
      * Add 'world'
      */
     pb.setProgressBar("world", 2L);
-    verifyProgress(layout, new String[]
-    { "hello", "world" });
+    verifyProgress(layout, new String[] { "hello", "world" });
 
     /*
      * Remove 'hello' with no status bar update
      */
     pb.setProgressBar(null, 1L);
-    verifyProgress(layout, new String[]
-    { "world" });
+    verifyProgress(layout, new String[] { "world" });
     assertEquals("nothing", statusBar.getText());
 
     /*
      * Remove 'world' with status bar update
      */
     pb.setProgressBar("goodbye", 2L);
-    verifyProgress(layout, new String[]
-    {});
+    verifyProgress(layout, new String[] {});
     assertEquals("goodbye", statusBar.getText());
   }