com.atlassian.plugin.servlet
Class TestPluginResourceDownload

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.plugin.servlet.TestPluginResourceDownload
All Implemented Interfaces:
junit.framework.Test

public class TestPluginResourceDownload
extends junit.framework.TestCase


Constructor Summary
TestPluginResourceDownload()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testMatches()
           
 void testResourceNotFound()
           
 void testServeFile()
           
 void testServeFileContentTypeUsesContentTypeResolverWhenResourceContentTypeIsNull()
           
 void testServeFileDoesNotCallSetContentTypeWithNullContentType()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestPluginResourceDownload

public TestPluginResourceDownload()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

testMatches

public void testMatches()

testResourceNotFound

public void testResourceNotFound()
                          throws Exception
Throws:
Exception

testServeFile

public void testServeFile()
                   throws Exception
Throws:
Exception

testServeFileContentTypeUsesContentTypeResolverWhenResourceContentTypeIsNull

public void testServeFileContentTypeUsesContentTypeResolverWhenResourceContentTypeIsNull()
                                                                                  throws com.atlassian.plugin.servlet.DownloadException
Throws:
com.atlassian.plugin.servlet.DownloadException

testServeFileDoesNotCallSetContentTypeWithNullContentType

public void testServeFileDoesNotCallSetContentTypeWithNullContentType()
                                                               throws com.atlassian.plugin.servlet.DownloadException
Throws:
com.atlassian.plugin.servlet.DownloadException


Copyright © 2011 Atlassian. All Rights Reserved.