Skip to content

Commit 4d4f04d

Browse files
j2objc-copybaracopybara-github
authored andcommitted
Rename JUnitTestRunner.main to JUnitTestRunner.run.
This is to avoid confusion with the standard Java main method. PiperOrigin-RevId: 628476356
1 parent fa7f2e0 commit 4d4f04d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

testing/junit_ext/src/java/com/google/j2objc/testing/JUnitTestRunner.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public JUnitTestRunner(PrintStream out) {
107107
this.out = out;
108108
}
109109

110-
public static int main(String[] args) {
110+
public static int run(String[] args) {
111111
// Create JUnit test runner.
112112
PrintStream nsLogOut = new PrintStream(new NSLogOutputStream(), true);
113113
JUnitTestRunner runner = new JUnitTestRunner(nsLogOut);

testing/junit_ext/src/objc/TestRunnerMain.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ @interface JUnitXCTestCase : XCTestCase
4141
@implementation JUnitXCTestCase
4242

4343
- (void)testAll {
44-
XCTAssertEqual(ComGoogleJ2objcTestingJUnitTestRunner_mainWithNSStringArray_(nil), 0);
44+
XCTAssertEqual(ComGoogleJ2objcTestingJUnitTestRunner_runWithNSStringArray_(nil), 0);
4545
}
4646

4747
@end

0 commit comments

Comments
 (0)