1 package it.com.atlassian.rest.util;
2
3 import com.atlassian.rest.jersey.client.WebResourceFactory;
4 import com.sun.jersey.api.client.WebResource;
5 import org.junit.Before;
6 import org.junit.Test;
7
8 import static org.junit.Assert.assertEquals;
9
10 public class RestUrlBuilderTest
11 {
12 private WebResource webResource;
13
14 @Before
15 public void setUp()
16 {
17 webResource = WebResourceFactory.authenticated();
18 }
19
20 @Test
21 public void testDummyResource()
22 {
23 assertEquals("http://atlassian.com:1234/foo/dummy/sub",
24 webResource.path("restUrlBuilder/dummyResource").get(String.class));
25 }
26 }