Skip to content

Commit

Permalink
Improvements suggested; Copyright update and removing un-necessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sumedhassk committed Apr 11, 2016
1 parent ad51fca commit 328080c
Showing 1 changed file with 13 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
/*
* Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

package org.wso2.identity.integration.test.oauth2;

import org.apache.catalina.startup.Tomcat;
Expand Down Expand Up @@ -68,6 +69,12 @@ public void testInit() throws Exception {

setSystemproperties();
client = new DefaultHttpClient();

tomcat = getTomcat();
URL resourceUrl =
getClass().getResource(File.separator + "samples" + File.separator +
"playground2.war");
startTomcat(tomcat, OAuth2Constant.PLAYGROUND_APP_CONTEXT_ROOT, resourceUrl.getPath());
}

@AfterClass(alwaysRun = true)
Expand All @@ -81,21 +88,7 @@ public void atEnd() throws Exception {
accessToken = null;
}

@Test(alwaysRun = true, description = "Deploy playground application")
public void testDeployPlaygroundApp() {
try {
tomcat = getTomcat();
URL resourceUrl =
getClass().getResource(File.separator + "samples" + File.separator +
"playground2.war");
startTomcat(tomcat, OAuth2Constant.PLAYGROUND_APP_CONTEXT_ROOT, resourceUrl.getPath());

} catch (Exception e) {
Assert.fail("Playground application deployment failed.", e);
}
}

@Test(groups = "wso2.is", description = "Check Oauth2 application registration", dependsOnMethods = "testDeployPlaygroundApp")
@Test(groups = "wso2.is", description = "Check Oauth2 application registration")
public void testRegisterApplication() throws Exception {

OAuthConsumerAppDTO appConfigData = new OAuthConsumerAppDTO();
Expand Down

0 comments on commit 328080c

Please sign in to comment.