Skip to content

Commit

Permalink
Fixes PITest workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jqno committed Jan 26, 2022
1 parent bb7d303 commit 7db057f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pitest-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11
java-version: 17
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pitest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
path: ~/.m2/repository
key: ${{ runner.os }}-mvn-pitest-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-mvn-pitest
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11
java-version: 17
- name: run pitest
# pitest has been bound to a profile called pitest for normal running
# we add config to analyse only changes made within a PR and treat surviving mutants as check errors
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
package nl.jqno.equalsverifier.integration.extended_contract;

import static nl.jqno.equalsverifier.testhelpers.Util.defaultEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

import nl.jqno.equalsverifier.EqualsVerifier;
import nl.jqno.equalsverifier.internal.reflection.RecordsHelper;
import nl.jqno.equalsverifier.testhelpers.ExpectedException;
import org.junit.jupiter.api.Test;

public class RecordsTest {

@Test
public void sanityCheckForRecordsHelper() {
assertTrue(RecordsHelper.isRecord(SimpleRecord.class));
assertFalse(RecordsHelper.isRecord(String.class));
}

@Test
public void succeed_whenClassIsARecord() {
EqualsVerifier.forClass(SimpleRecord.class).verify();
Expand Down

0 comments on commit 7db057f

Please sign in to comment.