Commit d0abff7a authored by Patrik Dufresne's avatar Patrik Dufresne

Add test for validate()

parent 31bcadb7
......@@ -28,7 +28,8 @@ import org.junit.Before;
import org.junit.Test;
/**
* This class test all the functionnality provided by the {@link LicenseManager} .
* This class test all the functionnality provided by the {@link LicenseManager}
* .
*
* @author ikus060
*
......@@ -42,6 +43,18 @@ public class LicenseManagerTest {
this.manager = new LicenseManager(getClass().getResourceAsStream("/pubkey.der"), getClass().getResourceAsStream("/privkey.der"));
}
/**
* Check if validate is working.
*
*/
@Test
public void validate() throws Exception {
License license = new License();
File file = new File("unittest2.lic");
manager.writeLicense(license, file);
LicenseManager.validate(getClass().getResourceAsStream("/pubkey.der"), file);
}
/**
* Check to create a license file
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment