Skip to content

Commit 6f0fbc4

Browse files
1 parent 2d3c1a8 commit 6f0fbc4

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

src/test/java/org/codehaus/plexus/components/secdispatcher/internal/DefaultSecDispatcherTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
import static org.junit.jupiter.api.Assertions.assertFalse;
4343
import static org.junit.jupiter.api.Assertions.assertTrue;
4444

45-
public class DefaultSecDispatcherTest {
45+
class DefaultSecDispatcherTest {
4646
private final Path CONFIG_PATH = Paths.get("./target/sec.xml");
4747

4848
private void saveSec(String dispatcher, Map<String, String> config) throws Exception {

src/test/java/org/codehaus/plexus/components/secdispatcher/internal/SecUtilTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* @version $Id$
3737
*
3838
*/
39-
public class SecUtilTest {
39+
class SecUtilTest {
4040
String _confName = "cname";
4141
String _propName = "pname";
4242
String _propVal = "pval";
@@ -64,7 +64,7 @@ void prepare() throws IOException {
6464
}
6565

6666
@Test
67-
void readWrite() throws IOException {
67+
void readWrite() throws Exception {
6868
Path path = Path.of("./target/sec.xml");
6969
SettingsSecurity config = SecUtil.read(path);
7070
assertNotNull(config);
@@ -75,7 +75,7 @@ void readWrite() throws IOException {
7575
}
7676

7777
@Test
78-
void readWriteWithBackup() throws IOException {
78+
void readWriteWithBackup() throws Exception {
7979
Path path = Path.of("./target/sec.xml");
8080
SettingsSecurity config = SecUtil.read(path);
8181
assertNotNull(config);

src/test/java/org/codehaus/plexus/components/secdispatcher/internal/cipher/CipherTestSupport.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void prepare() {
4141
abstract Cipher getCipher();
4242

4343
@Test
44-
void testEncrypt() throws Exception {
44+
void encrypt() throws Exception {
4545
String enc = pbeCipher.encrypt(clearText, password);
4646
assertNotNull(enc);
4747
String enc2 = pbeCipher.encrypt(clearText, password);
@@ -50,14 +50,14 @@ void testEncrypt() throws Exception {
5050
}
5151

5252
@Test
53-
void testDecrypt() throws Exception {
53+
void decrypt() throws Exception {
5454
String enc = pbeCipher.encrypt(clearText, password);
5555
String clear = pbeCipher.decrypt(enc, password);
5656
assertEquals(clearText, clear);
5757
}
5858

5959
@Test
60-
void testEncoding() throws Exception {
60+
void encoding() throws Exception {
6161
String pwd = "äüöÜÖÄæøåčćžšđß\"§$%&/()=?é";
6262
String encPwd = pbeCipher.encrypt(pwd, pwd);
6363
String decPwd = pbeCipher.decrypt(encPwd, pwd);

src/test/java/org/codehaus/plexus/components/secdispatcher/internal/dispatchers/LegacyDispatcherTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import static org.junit.jupiter.api.Assertions.assertEquals;
2222

23-
public class LegacyDispatcherTest {
23+
class LegacyDispatcherTest {
2424
/**
2525
* Test values created with Maven 3.9.9.
2626
* <p>

src/test/java/org/codehaus/plexus/components/secdispatcher/internal/dispatchers/MasterSourceLookupDispatcherTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
import static org.junit.jupiter.api.Assertions.assertThrows;
2626
import static org.junit.jupiter.api.Assertions.assertTrue;
2727

28-
public class MasterSourceLookupDispatcherTest {
28+
class MasterSourceLookupDispatcherTest {
2929

3030
@Test
31-
void testUnknownPrefix() {
31+
void unknownPrefix() {
3232
MasterSourceLookupDispatcher masterSourceLookupDispatcher =
3333
new MasterSourceLookupDispatcher(Collections.singleton(new EnvMasterSource()));
3434
assertThrows(
@@ -40,7 +40,7 @@ void testUnknownPrefix() {
4040
}
4141

4242
@Test
43-
void testSystemPropertyMasterSourceDecrypt() {
43+
void systemPropertyMasterSourceDecrypt() {
4444
System.setProperty("myprop", "plaintext");
4545
MasterSourceLookupDispatcher masterSourceLookupDispatcher =
4646
new MasterSourceLookupDispatcher(Collections.singleton(new SystemPropertyMasterSource()));
@@ -50,7 +50,7 @@ void testSystemPropertyMasterSourceDecrypt() {
5050
}
5151

5252
@Test
53-
void testEncrypt() {
53+
void encrypt() {
5454
System.setProperty("myprop", "plaintext");
5555
MasterSourceLookupDispatcher masterSourceLookupDispatcher =
5656
new MasterSourceLookupDispatcher(Collections.singleton(new SystemPropertyMasterSource()));
@@ -60,7 +60,7 @@ void testEncrypt() {
6060
}
6161

6262
@Test
63-
void testValidateConfiguration() {
63+
void validateConfiguration() {
6464
MasterSourceLookupDispatcher masterSourceLookupDispatcher =
6565
new MasterSourceLookupDispatcher(Collections.singleton(new SystemPropertyMasterSource()));
6666
ValidationResponse response = masterSourceLookupDispatcher.validateConfiguration(Collections.emptyMap());

src/test/java/org/codehaus/plexus/components/secdispatcher/internal/sources/SourcesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/**
2222
* surefire plugin set system property and env.
2323
*/
24-
public class SourcesTest {
24+
class SourcesTest {
2525
@Test
2626
void systemProperty() {
2727
SystemPropertyMasterSource source = new SystemPropertyMasterSource();

0 commit comments

Comments
 (0)