1   package com.atlassian.plugin.webresource;
2   
3   import junit.framework.TestCase;
4   
5   import java.util.Collections;
6   
7   public class TestSuperBatchSubResource extends TestCase
8   {
9       public void testParsePluginResource()
10      {
11          String path = "/download/superbatch/css/images/foo.png";
12          assertTrue(SuperBatchSubResource.matches(path));
13          SuperBatchSubResource resource = SuperBatchSubResource.parse(path, Collections.<String, String>emptyMap());
14          assertEquals("png", resource.getType());
15          assertEquals("css/images/foo.png", resource.getResourceName());
16      }
17  }