Skip to content

Commit

Permalink
#4 - removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoltz committed Jun 18, 2018
1 parent ca5bce0 commit 151c4e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
23 changes: 2 additions & 21 deletions src/main/java/org/opengis/cite/wfs30/CommonFixture.java
Expand Up @@ -39,21 +39,7 @@ public class CommonFixture {
*/
@BeforeClass
public void initCommonFixture( ITestContext testContext ) {
Object obj = testContext.getSuite().getAttribute( SuiteAttribute.TEST_SUBJ_FILE.getName() );

/*
* Object obj = testContext.getSuite().getAttribute( SuiteAttribute.CLIENT.getName() ); if ( null != obj ) {
* this.client = Client.class.cast( obj ); } obj = testContext.getSuite().getAttribute(
* SuiteAttribute.TEST_SUBJECT.getName() ); if ( null == obj ) { throw new SkipException(
* "Test subject not found in ITestContext." ); }
*/

initLogging();

// PrintStream printStream = new PrintStream( requestPrintStream, true ); // true: autoflush must be set!
// LogConfig logConfig = new LogConfig( printStream, true );
// RestAssured.config = RestAssuredConfig.config().logConfig( logConfig );

rootUri = (URI) testContext.getSuite().getAttribute( SuiteAttribute.IUT.getName() );
}

Expand Down Expand Up @@ -92,12 +78,6 @@ protected RequestSpecification init() {
* Builds an HTTP request message that uses the GET method. This convenience method wraps a static method call to
* facilitate unit testing (Mockito workaround).
*
* @param endpoint
* A URI indicating the target resource.
* @param qryParams
* A Map containing query parameters (may be null);
* @param mediaTypes
* A list of acceptable media types; if not specified, generic XML ("application/xml") is preferred.
* @return A ClientRequest object.
*
* @see ClientUtils#buildGetRequest public ClientRequest buildGetRequest( URI endpoint, Map<String, String>
Expand All @@ -113,4 +93,5 @@ private void initLogging() {
requestLoggingFilter = new RequestLoggingFilter( requestPrintStream );
responseLoggingFilter = new ResponseLoggingFilter( responsePrintStream );
}
}

}
Expand Up @@ -10,7 +10,6 @@
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;

import org.opengis.cite.wfs30.CommonFixture;
import org.testng.SkipException;
Expand All @@ -31,8 +30,6 @@
*/
public class ApiDefinition extends CommonFixture {

private static final Logger LOG = Logger.getLogger( ApiDefinition.class.getName() );

private String response;

private String apiUrl;
Expand Down

0 comments on commit 151c4e6

Please sign in to comment.