org.wso2.carbon.identity.testutil.powermock
Class PowerMockIdentityBaseTest
- java.lang.Object
-
- org.powermock.modules.testng.PowerMockTestCase
-
- org.wso2.carbon.identity.testutil.powermock.PowerMockIdentityBaseTest
public abstract class PowerMockIdentityBaseTest extends org.powermock.modules.testng.PowerMockTestCase
PowerMock based TestNG test that extended from PowerMockIdentityBaseTest class can read "log-level" parameter from testng.xml configuration file and set that value as the root log level before executing each test method. Example :<test name="basic-authenticator-tests-with-debug-logs" preserve-order="true" parallel="false"> <parameter name="log-level" value="debug"/> <classes> <class name="org.wso2.carbon.identity.application.authenticator.basicauth.BasicAuthenticatorTestCase"/> </classes> </test>
Test cases that should run twice with debug and info or any other log levels need to be extended from this class. PowerMockIdentityBaseTest class also set ignore package list for PowerMock framework.- See Also:
-
IdentityBaseTest
-
Constructor Summary
Constructors Constructor and Description PowerMockIdentityBaseTest()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
setUp(String logLevel)
Copyright © 2018 WSO2. All rights reserved.