View Javadoc

1   package it.com.atlassian.rest.mvc;
2   
3   import com.atlassian.plugins.rest.mvc.Velocity;
4   import com.atlassian.rest.jersey.client.WebResourceFactory;
5   import static org.junit.Assert.*;
6   import org.junit.Test;
7   
8   public class VelocityTest
9   {
10      @Test
11      public void testGetVelocityResource()
12      {
13          final String text = WebResourceFactory.anonymous().path("velocity").get(String.class);
14          assertEquals(Velocity.TITLE + "\n" + Velocity.SUB_TITLE, text);
15      }
16  }