PageRenderTime 27ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/java/rename_pcre_encoder_runme.java

#
Java | 14 lines | 12 code | 2 blank | 0 comment | 2 complexity | a0dd92c48f0e0b954d236901492c6589 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. import rename_pcre_encoder.*;
  2. public class rename_pcre_encoder_runme {
  3. static { System.loadLibrary("rename_pcre_encoder"); }
  4. public static void main(String argv[])
  5. {
  6. SomeWidget w = new SomeWidget();
  7. w.putBorderWidth(17);
  8. if ( w.getBorderWidth() != 17 )
  9. throw new RuntimeException(String.format("Border with should be 17, not %d",
  10. w.getBorderWidth()));
  11. }
  12. }