Skip to content

Commit

Permalink
Switch JDK and add testng
Browse files Browse the repository at this point in the history
  • Loading branch information
xpdota committed Jan 3, 2024
1 parent 1cb6470 commit 4afc62d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish_notselfhosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
distribution: 'oracle'
cache: maven

- name: Debug info
Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
<artifactId>launcher</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

</project>
16 changes: 16 additions & 0 deletions src/test/java/com/bar/foo/MySampleUnitTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.bar.foo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.Test;

public class MySampleUnitTest {

private static final Logger log = LoggerFactory.getLogger(MySampleUnitTest.class);

@Test
void sampleTest() {
log.info("Running sample test");
}

}

0 comments on commit 4afc62d

Please sign in to comment.