public static boolean isPositiveInteger( String strNum ) {
    boolean result = true;
    if ( strNum == null ) {
      result = false;
    } else {
      try {
        int value = Integer.parseInt( strNum.trim() );
        if ( value <= 0 ) {
          result = false;
        }
      } catch ( NumberFormatException nfe ) {
        result = false;
      }
    }
    return result;
  }
@Test
  public void test_isPositiveNumber_ForPositiveIntegers() {
    for ( String value : posInt) {
      assertTrue( JobEntryPing.isPositiveInteger( value ) );
    }
  }