File tree Expand file tree Collapse file tree
core/src/test/java/org/bouncycastle/asn1/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,29 +14,31 @@ public class StreamLimitTest
1414 public void performTest ()
1515 throws Exception
1616 {
17- System .setProperty ("org.bouncycastle.asn1.max_limit" , "1024" );
17+ System .setProperty (MAX_LIMIT , "1024" );
1818
1919 MyASN1InputStream asn1In = new MyASN1InputStream ();
2020
2121 isEquals (1024 , asn1In .getLimit ());
2222
23- System .setProperty ("org.bouncycastle.asn1.max_limit" , "1024k" );
23+ System .setProperty (MAX_LIMIT , "1024k" );
2424
2525 asn1In = new MyASN1InputStream ();
2626
2727 isEquals (1048576 , asn1In .getLimit ());
2828
29- System .setProperty ("org.bouncycastle.asn1.max_limit" , "1024m" );
29+ System .setProperty (MAX_LIMIT , "1024m" );
3030
3131 asn1In = new MyASN1InputStream ();
3232
3333 isEquals (1073741824 , asn1In .getLimit ());
3434
35- System .setProperty ("org.bouncycastle.asn1.max_limit" , "1g" );
35+ System .setProperty (MAX_LIMIT , "1g" );
3636
3737 asn1In = new MyASN1InputStream ();
3838
3939 isEquals (1073741824 , asn1In .getLimit ());
40+
41+ System .clearProperty (MAX_LIMIT )
4042 }
4143
4244 public String getName ()
You can’t perform that action at this time.
0 commit comments