JAL-1645 source formatting and organise imports
[jalview.git] / test / jalview / ws / dbsources / PDBRestClientTest.java
index 9ae5b26..f8b1616 100644 (file)
@@ -34,7 +34,7 @@ import com.sun.jersey.api.client.config.DefaultClientConfig;
 public class PDBRestClientTest
 {
 
- @BeforeMethod(alwaysRun = true)
+  @BeforeMethod(alwaysRun = true)
   public void setUp() throws Exception
   {
   }
@@ -44,8 +44,7 @@ public class PDBRestClientTest
   {
   }
 
-  @Test(groups =
-  { "External", "Network" })
+  @Test(groups = { "External", "Network" })
   public void executeRequestTest()
   {
     List<PDBDocField> wantedFields = new ArrayList<PDBDocField>();
@@ -77,7 +76,7 @@ public class PDBRestClientTest
     assertTrue(response.getSearchSummary().size() > 99);
   }
 
-  @Test(groups ={ "Functional" })
+  @Test(groups = { "Functional" })
   public void getPDBDocFieldsAsCommaDelimitedStringTest()
   {
     List<PDBDocField> wantedFields = new ArrayList<PDBDocField>();
@@ -94,8 +93,7 @@ public class PDBRestClientTest
     assertEquals("", expectedResult, actualResult);
   }
 
-  @Test(groups =
-  { "External, Network" })
+  @Test(groups = { "External, Network" })
   public void parsePDBJsonExceptionStringTest()
   {
     List<PDBDocField> wantedFields = new ArrayList<PDBDocField>();
@@ -133,8 +131,9 @@ public class PDBRestClientTest
     assertEquals(expectedErrorMsg, parsedErrorResponse);
   }
 
-  @Test(groups =
-  { "External", "Network" }, expectedExceptions = Exception.class)
+  @Test(
+    groups = { "External", "Network" },
+    expectedExceptions = Exception.class)
   public void testForExpectedRuntimeException() throws Exception
   {
     List<PDBDocField> wantedFields = new ArrayList<PDBDocField>();
@@ -147,8 +146,7 @@ public class PDBRestClientTest
     new PDBRestClient().executeRequest(request);
   }
 
-  @Test(groups =
-  { "External" })
+  @Test(groups = { "External" })
   public void parsePDBJsonResponseTest()
   {
     List<PDBDocField> wantedFields = new ArrayList<PDBDocField>();
@@ -177,7 +175,7 @@ public class PDBRestClientTest
     assertTrue(response.getSearchSummary().size() == 14);
   }
 
-  @Test(groups ={ "Functional" })
+  @Test(groups = { "Functional" })
   public void getPDBIdColumIndexTest()
   {
     List<PDBDocField> wantedFields = new ArrayList<PDBDocField>();
@@ -190,8 +188,7 @@ public class PDBRestClientTest
     assertEquals(4, PDBRestClient.getPDBIdColumIndex(wantedFields, false));
   }
 
-  @Test(groups =
-  { "External" })
+  @Test(groups = { "External" })
   public void externalServiceIntegrationTest()
   {
     ClientConfig clientConfig = new DefaultClientConfig();
@@ -274,7 +271,7 @@ public class PDBRestClientTest
         sb.append(line);
         sb.append(System.lineSeparator());
         line = br.readLine();
-        }
+      }
       fileContent = sb.toString();
     } finally
     {