mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-02 19:15:29 -04:00
More Maven-friendly test suite.
This commit is contained in:
parent
1ffe694538
commit
b97d95cca7
@ -1,13 +1,15 @@
|
|||||||
package com.twelvemonkeys.servlet;
|
package com.twelvemonkeys.servlet;
|
||||||
|
|
||||||
import com.twelvemonkeys.util.MapAbstractTestCase;
|
import com.twelvemonkeys.util.MapAbstractTestCase;
|
||||||
|
import org.junit.runner.RunWith;
|
||||||
|
import org.junit.runners.Suite;
|
||||||
|
|
||||||
import javax.servlet.*;
|
import javax.servlet.*;
|
||||||
import java.util.*;
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.net.URL;
|
import java.io.Serializable;
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
|
import java.net.URL;
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ServletConfigMapAdapterTestCase
|
* ServletConfigMapAdapterTestCase
|
||||||
@ -16,7 +18,12 @@ import java.net.MalformedURLException;
|
|||||||
* @author <a href="mailto:harald.kuhr@gmail.com">Harald Kuhr</a>
|
* @author <a href="mailto:harald.kuhr@gmail.com">Harald Kuhr</a>
|
||||||
* @version $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-servlet/src/test/java/com/twelvemonkeys/servlet/ServletConfigMapAdapterTestCase.java#3 $
|
* @version $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-servlet/src/test/java/com/twelvemonkeys/servlet/ServletConfigMapAdapterTestCase.java#3 $
|
||||||
*/
|
*/
|
||||||
public abstract class ServletConfigMapAdapterTest extends MapAbstractTestCase {
|
@RunWith(Suite.class)
|
||||||
|
@Suite.SuiteClasses({AbstractServletConfigMapAdapterTest.ServletConfigMapTest.class, AbstractServletConfigMapAdapterTest.FilterConfigMapTest.class, AbstractServletConfigMapAdapterTest.ServletContextMapTest.class})
|
||||||
|
public final class ServletConfigMapAdapterTest {
|
||||||
|
}
|
||||||
|
|
||||||
|
abstract class AbstractServletConfigMapAdapterTest extends MapAbstractTestCase {
|
||||||
|
|
||||||
public boolean isPutAddSupported() {
|
public boolean isPutAddSupported() {
|
||||||
return false;
|
return false;
|
||||||
@ -148,7 +155,7 @@ public abstract class ServletConfigMapAdapterTest extends MapAbstractTestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class ServletConfigMapTestCase extends ServletConfigMapAdapterTest {
|
public static final class ServletConfigMapTest extends AbstractServletConfigMapAdapterTest {
|
||||||
|
|
||||||
public Map makeEmptyMap() {
|
public Map makeEmptyMap() {
|
||||||
ServletConfig config = new TestConfig();
|
ServletConfig config = new TestConfig();
|
||||||
@ -162,7 +169,7 @@ public abstract class ServletConfigMapAdapterTest extends MapAbstractTestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class FilterConfigMapTestCase extends ServletConfigMapAdapterTest {
|
public static final class FilterConfigMapTest extends AbstractServletConfigMapAdapterTest {
|
||||||
|
|
||||||
public Map makeEmptyMap() {
|
public Map makeEmptyMap() {
|
||||||
FilterConfig config = new TestConfig();
|
FilterConfig config = new TestConfig();
|
||||||
@ -176,7 +183,7 @@ public abstract class ServletConfigMapAdapterTest extends MapAbstractTestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class ServletContextMapTestCase extends ServletConfigMapAdapterTest {
|
public static final class ServletContextMapTest extends AbstractServletConfigMapAdapterTest {
|
||||||
|
|
||||||
public Map makeEmptyMap() {
|
public Map makeEmptyMap() {
|
||||||
ServletContext config = new TestConfig();
|
ServletContext config = new TestConfig();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user