Skip to content

Test without requirements #4

@user9209

Description

@user9209

create a text file to be encripted, before run the tests

private String plainTextFile = ".../plain-text.txt";
                           //create a text file to be encripted, before run the tests

Solution:

Simple insert to TestBCOpenPGP:

@Before
    public void setUp() throws Exception {
        if(Files.notExists(Paths.get(plainTextFile)))
        {
            byte[] rand = new byte[819200];
            new SecureRandom().nextBytes(rand);
            Files.write(Paths.get(plainTextFile), Base64.getEncoder().encode(rand));
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions