Sorting a test file.


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7240 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/test/com/google/gwt/user/client/rpc/RemoteServiceServletTest.java b/user/test/com/google/gwt/user/client/rpc/RemoteServiceServletTest.java
index 6420b6b..874fa53 100644
--- a/user/test/com/google/gwt/user/client/rpc/RemoteServiceServletTest.java
+++ b/user/test/com/google/gwt/user/client/rpc/RemoteServiceServletTest.java
@@ -126,6 +126,29 @@
     });
   }
 
+  /**
+   * Verify behavior when the RPC method throws a RuntimeException declared on
+   * the RemoteService interface.
+   */
+  public void testDeclaredRuntimeException() {
+    RemoteServiceServletTestServiceAsync service = getAsyncService();
+
+    delayTestFinishForRpc();
+
+    service.throwDeclaredRuntimeException(new AsyncCallback<Void>() {
+
+      public void onFailure(Throwable caught) {
+        assertTrue(caught instanceof NullPointerException);
+        assertEquals("expected", caught.getMessage());
+        finishTest();
+      }
+
+      public void onSuccess(Void result) {
+        fail();
+      }
+    });
+  }
+
   public void testManualSend() throws RequestException {
     RemoteServiceServletTestServiceAsync service = getAsyncService();
 
@@ -168,6 +191,15 @@
   }
 
   /**
+   * Test that the policy strong name is available from browser-side Java code.
+   */
+  public void testPolicyStrongName() {
+    String policy = ((ServiceDefTarget) getAsyncService()).getSerializationPolicyName();
+    assertNotNull(policy);
+    assertTrue(!policy.isEmpty());
+  }
+
+  /**
    * Ensure that each doFoo method is called.
    */
   public void testRpcRequestBuilder() {
@@ -208,38 +240,6 @@
   }
 
   /**
-   * Verify behavior when the RPC method throws a RuntimeException declared on
-   * the RemoteService interface.
-   */
-  public void testDeclaredRuntimeException() {
-    RemoteServiceServletTestServiceAsync service = getAsyncService();
-
-    delayTestFinishForRpc();
-
-    service.throwDeclaredRuntimeException(new AsyncCallback<Void>() {
-
-      public void onFailure(Throwable caught) {
-        assertTrue(caught instanceof NullPointerException);
-        assertEquals("expected", caught.getMessage());
-        finishTest();
-      }
-
-      public void onSuccess(Void result) {
-        fail();
-      }
-    });
-  }
-
-  /**
-   * Test that the policy strong name is available from browser-side Java code.
-   */
-  public void testPolicyStrongName() {
-    String policy = ((ServiceDefTarget) getAsyncService()).getSerializationPolicyName();
-    assertNotNull(policy);
-    assertTrue(!policy.isEmpty());
-  }
-
-  /**
    * Verify behavior when the RPC method throws an unknown RuntimeException
    * (possibly one unknown to the client).
    */