com.atlassian.plugins.rest.common.security.jersey
Class TestCorsResourceFilter

java.lang.Object
  extended by com.atlassian.plugins.rest.common.security.jersey.TestCorsResourceFilter

public class TestCorsResourceFilter
extends java.lang.Object


Constructor Summary
TestCorsResourceFilter()
           
 
Method Summary
 void setUp()
           
 void testPreflightSucceedsWhenOneCorsDefaultsAllowsOrigin()
           
 void testSecondCorsDefaultIsNotCalledWhenItDoesntAllowOrigin()
           
 void testSecondCorsDefaultsIsNotHitIfDoesntAllowOrigin()
           
 void testSimpleGet()
           
 void testSimpleGetNoOrigin()
           
 void testSimpleGetWhenOneCorsDefaultsAllowsOrigin()
           
 void testSimpleGetWrongOrigin()
           
 void testSimplePreflightForGet()
           
 void testSimplePreflightForGetWrongDomain()
           
 void testSimplePreflightForGetWrongHeaders()
           
 void testSimplePreflightForGetWrongMethod()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCorsResourceFilter

public TestCorsResourceFilter()
Method Detail

setUp

public void setUp()

testSimplePreflightForGet

public void testSimplePreflightForGet()

testPreflightSucceedsWhenOneCorsDefaultsAllowsOrigin

public void testPreflightSucceedsWhenOneCorsDefaultsAllowsOrigin()

testSecondCorsDefaultsIsNotHitIfDoesntAllowOrigin

public void testSecondCorsDefaultsIsNotHitIfDoesntAllowOrigin()

testSimplePreflightForGetWrongDomain

public void testSimplePreflightForGetWrongDomain()

testSimplePreflightForGetWrongMethod

public void testSimplePreflightForGetWrongMethod()

testSimplePreflightForGetWrongHeaders

public void testSimplePreflightForGetWrongHeaders()

testSimpleGet

public void testSimpleGet()

testSimpleGetWhenOneCorsDefaultsAllowsOrigin

public void testSimpleGetWhenOneCorsDefaultsAllowsOrigin()

testSecondCorsDefaultIsNotCalledWhenItDoesntAllowOrigin

public void testSecondCorsDefaultIsNotCalledWhenItDoesntAllowOrigin()

testSimpleGetWrongOrigin

public void testSimpleGetWrongOrigin()

testSimpleGetNoOrigin

public void testSimpleGetNoOrigin()


Copyright © 2014 Atlassian. All Rights Reserved.