@Test public void testIsValidBus() { assertTrue("should be a valid value", isValidBus("01")); assertTrue("should be a valid value", isValidBus("09")); assertTrue("should be a valid value", isValidBus("11")); assertTrue("should be a valid value", isValidBus("15")); assertFalse("should be an invalid value", isValidBus(null)); assertFalse("should be an invalid value", isValidBus("#")); assertFalse("should be an invalid value", isValidBus("0")); assertFalse("should be an invalid value", isValidBus("010")); assertFalse("should be an invalid value", isValidBus("20")); assertFalse("should be an invalid value", isValidBus("00")); assertFalse("should be an invalid value", isValidBus("10")); assertFalse("should be an invalid value", isValidBus("16")); }
protected static Boolean isValidBus(String bus) { try { checkBus(bus); return true; } catch (Throwable e) { return false; } }
BaseOpenMessage implements OpenMessage { protected static Boolean isValidBus(String bus) { try { checkBus(bus); return true; } catch (Throwable e) { return false; } } }
BaseOpenMessage implements OpenMessage { protected static Boolean isValidBus(String bus) { try { checkBus(bus); return true; } catch (Throwable e) { return false; } } protected  BaseOpenMessage(String value); }
BaseOpenMessage implements OpenMessage { protected static Boolean isValidBus(String bus) { try { checkBus(bus); return true; } catch (Throwable e) { return false; } } protected  BaseOpenMessage(String value); @Override String getValue(); }
BaseOpenMessage implements OpenMessage { protected static Boolean isValidBus(String bus) { try { checkBus(bus); return true; } catch (Throwable e) { return false; } } protected  BaseOpenMessage(String value); @Override String getValue(); static final String WHERE_GENERAL_VALUE; static final String NO_BUS; }