PageRenderTime 151ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/gwtrpccommlayer/src/test/java/com/googlecode/gwtrpccommlayer/client/impl/GwtRpcClientSideProxyTest.java

https://code.google.com/p/gwtrpccommlayer/
Java | 112 lines | 70 code | 36 blank | 6 comment | 0 complexity | cfeb0cb66ec56181f71f86a6e495766e MD5 | raw file
  1. package com.googlecode.gwtrpccommlayer.client.impl;
  2. import com.googlecode.gwtrpccommlayer.client.impl.GwtRpcClientSideProxy;
  3. import org.junit.After;
  4. import org.junit.Assert;
  5. import org.junit.Before;
  6. import org.junit.Test;
  7. import java.net.MalformedURLException;
  8. import java.net.URL;
  9. /**
  10. * Created by IntelliJ IDEA.
  11. * User: dan
  12. * Date: 10/30/10
  13. * Time: 9:43 PM
  14. */
  15. public class GwtRpcClientSideProxyTest {
  16. @Before
  17. public void setUp() throws Exception {
  18. }
  19. @After
  20. public void tearDown() throws Exception {
  21. }
  22. @Test
  23. public void testInvoke() throws Exception {
  24. }
  25. @Test
  26. public void testSetUrl() throws Exception {
  27. }
  28. @Test
  29. public void testSetShowResponseHeaders() throws Exception {
  30. }
  31. @Test
  32. public void testSetCookies() throws Exception {
  33. }
  34. @Test
  35. public void testGetCookies() throws Exception {
  36. }
  37. @Test
  38. public void testSetScheme() throws Exception {
  39. }
  40. @Test
  41. public void testGetScheme() throws Exception {
  42. }
  43. @Test
  44. public void testSetHost() throws Exception {
  45. }
  46. @Test
  47. public void testGetHost() throws Exception {
  48. }
  49. @Test
  50. public void testSetPort() throws Exception {
  51. }
  52. @Test
  53. public void testGetPortWhenUnprovided() throws Exception {
  54. GwtRpcClientSideProxy proxy = new GwtRpcClientSideProxy(new URL("http://www.google.com"));
  55. Assert.assertEquals(new Integer(80), proxy.getPort());
  56. }
  57. @Test
  58. public void testGetPortProvided() throws MalformedURLException {
  59. Integer PORT = 8080;
  60. GwtRpcClientSideProxy proxy =
  61. new GwtRpcClientSideProxy(new URL("http://www.google.com:" + PORT));
  62. Assert.assertEquals(PORT, proxy.getPort());
  63. }
  64. @Test
  65. public void testSetPath() throws Exception {
  66. }
  67. @Test
  68. public void testGetPath() throws Exception {
  69. }
  70. @Test
  71. public void testSetQueryString() throws Exception {
  72. }
  73. @Test
  74. public void testGetQueryString() throws Exception {
  75. }
  76. }