public class V1ClientArchitectureConformityIT extends Object
Current weaknesses:
Modifier and Type | Field and Description |
---|---|
protected static String |
ECHO_MMP |
org.junit.rules.ErrorCollector |
errorCollector
Tests should use the error collector to handle JUnit assertions
and keep going.
|
protected static String |
EXCEPTION_SERVICE |
protected static org.apache.commons.logging.Log |
log |
protected static String |
pathInfoBase |
protected static String |
TEST_SERVICE_BASE |
Constructor and Description |
---|
V1ClientArchitectureConformityIT(String methodKey) |
Modifier and Type | Method and Description |
---|---|
void |
checkEquals(String host,
String message,
int s1,
int s2) |
void |
checkEquals(String host,
String message,
String s1,
String s2) |
void |
checkTrue(String host,
String message,
boolean b) |
void |
handleFail(String host,
String message) |
static void |
setUp() |
static Collection<Object[]> |
setUpTestParameters() |
void |
testEscapedPattern()
want to test a particularly confusing bit of logic for the path matching test
Note, (String).matches() method will only return true if the pattern includes
the entire String under test.
|
void |
testHarness() |
void |
testHttpVerb()
Tests that the documented http verb is the one returned by the echo service.
|
void |
testMethodExceptionHandling()
Check the method against all D1 exceptions.
|
void |
testMethodIsDocumented() |
void |
testMethodIsImplemented() |
void |
testMethodParameterAgreement() |
void |
testMethodParameters() |
void |
testMethodReturnTypeAgreement() |
void |
testPath() |
protected static final String TEST_SERVICE_BASE
protected static final String ECHO_MMP
protected static final String EXCEPTION_SERVICE
protected static String pathInfoBase
protected static org.apache.commons.logging.Log log
public org.junit.rules.ErrorCollector errorCollector
public V1ClientArchitectureConformityIT(String methodKey)
public static void setUp() throws IOException, org.dataone.client.exception.ClientSideException
IOException
org.dataone.client.exception.ClientSideException
public static Collection<Object[]> setUpTestParameters() throws IOException
IOException
public void testHarness()
public void testEscapedPattern()
public void testMethodIsDocumented()
public void testMethodIsImplemented()
public void testMethodParameterAgreement()
public void testMethodReturnTypeAgreement()
public void testHttpVerb()
public void testPath()
public void testMethodParameters()
public void testMethodExceptionHandling()
Copyright © 2020. All Rights Reserved.