Skip to content

Commit c16addc

Browse files
committed
Create HelpersTest.java
1 parent 35e74f2 commit c16addc

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package io.cryptolens;
2+
3+
import io.cryptolens.methods.Helpers;
4+
import io.cryptolens.models.LicenseKey;
5+
import junit.framework.Test;
6+
import junit.framework.TestCase;
7+
import junit.framework.TestSuite;
8+
9+
/**
10+
* Unit test for simple App.
11+
*/
12+
public class HelpersTest
13+
extends TestCase
14+
{
15+
/**
16+
* Create the test case
17+
*
18+
* @param testName name of the test case
19+
*/
20+
public HelpersTest(String testName )
21+
{
22+
super( testName );
23+
}
24+
25+
/**
26+
* @return the suite of tests being tested
27+
*/
28+
public static Test suite()
29+
{
30+
return new TestSuite( HelpersTest.class );
31+
}
32+
33+
/**
34+
* Rigourous Test :-)
35+
*/
36+
public void testApp()
37+
{
38+
LicenseKey license = new LicenseKey();
39+
license.Notes = "[\"test\"]";
40+
41+
assertTrue(Helpers.HasFeature(license, "test"));
42+
}
43+
}

0 commit comments

Comments
 (0)