• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pgpainless / sop-java / #54

25 Sep 2025 09:07PM UTC coverage: 58.308% (-0.1%) from 58.411%
#54

push

other

vanitasvitae
Remove unused import

2088 of 3581 relevant lines covered (58.31%)

0.58 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

38.46
/sop-java-testfixtures/src/main/java/sop/testsuite/operation/ListProfilesTest.java
1
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
2
//
3
// SPDX-License-Identifier: Apache-2.0
4

5
package sop.testsuite.operation;
6

7
import org.junit.jupiter.params.ParameterizedTest;
8
import org.junit.jupiter.params.provider.Arguments;
9
import org.junit.jupiter.params.provider.MethodSource;
10
import sop.Profile;
11
import sop.SOP;
12
import sop.exception.SOPGPException;
13

14
import java.util.List;
15
import java.util.stream.Stream;
16

17
import static org.junit.jupiter.api.Assertions.assertFalse;
18
import static org.junit.jupiter.api.Assertions.assertThrows;
19

20
public class ListProfilesTest extends AbstractSOPTest {
1✔
21

22
    static Stream<Arguments> provideInstances() {
23
        return provideBackends();
1✔
24
    }
25

26
    @ParameterizedTest
27
    @MethodSource("provideInstances")
28
    public void listGenerateKeyProfiles(SOP sop) {
29
        List<Profile> profiles = assumeSupported(sop::listProfiles)
1✔
30
                .generateKey();
×
31

32
        assertFalse(profiles.isEmpty());
×
33
    }
×
34

35
    @ParameterizedTest
36
    @MethodSource("provideInstances")
37
    public void listEncryptProfiles(SOP sop) {
38
        List<Profile> profiles = assumeSupported(sop::listProfiles)
1✔
39
                .encrypt();
×
40

41
        assertFalse(profiles.isEmpty());
×
42
    }
×
43

44
    @ParameterizedTest
45
    @MethodSource("provideInstances")
46
    public void listUnsupportedProfiles(SOP sop) {
47
        assertThrows(SOPGPException.UnsupportedProfile.class, () -> assumeSupported(sop::listProfiles)
1✔
48
                .subcommand("invalid"));
×
49
    }
×
50
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc