Skip to content

Commit

Permalink
Migrate to JUnit 5
Browse files Browse the repository at this point in the history
Android Test itself needs to stay at JUnit 4 as
androidx.test does not support junit 5 yet
  • Loading branch information
centic9 committed Dec 20, 2024
1 parent 5173b31 commit 8d25f3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion poitest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ dependencies {
// commons-text 1.8 fails due to Java 8 dependency
implementation 'org.apache.commons:commons-text:1.13.0'
implementation 'org.apache.commons:commons-lang3:3.17.0'

// there is a unit-tests executed in normal code currently...
implementation 'org.junit.vintage:junit-vintage-engine:5.11.3'
implementation 'org.junit.jupiter:junit-jupiter-api:5.11.3'

// newer versions of xmlsec are compiled with JDK 8 which does not work in Android Studio 2.x!
/*implementation ('org.apache.santuario:xmlsec:2.2.1') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.apache.poi.poifs.crypt.dsig.SignatureInfo;

import static junit.framework.Assert.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNotNull;

public class TestSignatureInfo {
public void testConstruct() {
Expand Down

0 comments on commit 8d25f3f

Please sign in to comment.