blob: 33e54da9c983e21e3e0db2bf4bfce86ef3e07152 [file] [log] [blame]
package test.privatemethod;
import org.testng.Assert;
import org.testng.annotations.Test;
public class PrivateMethodTest {
public PrivateMethodTest(String name, int value) {
}
private int privateMethod() {
return 1;
}
public static class PrivateMethodInnerTest {
@Test
public void testPrivateMethod() {
PrivateMethodTest pmt = new PrivateMethodTest("aname", 1);
int returnValue = pmt.privateMethod();
Assert.assertEquals(returnValue, 1);
}
}
}