@Test public void testSessionBoolDefProp() throws Exception { Properties defprops = new Properties(); defprops.setProperty("test", "true"); Properties props = new Properties(defprops); Session sess = Session.getInstance(props, null); assertTrue(PropUtil.getBooleanSessionProperty(sess, "test", false)); }
public static boolean getBooleanSessionProperty(Session session, String name, boolean def) { return getBoolean(getProp(session.getProperties(), name), def); }
PropUtil { public static boolean getBooleanSessionProperty(Session session, String name, boolean def) { return getBoolean(getProp(session.getProperties(), name), def); } }
PropUtil { public static boolean getBooleanSessionProperty(Session session, String name, boolean def) { return getBoolean(getProp(session.getProperties(), name), def); } private  PropUtil(); }
PropUtil { public static boolean getBooleanSessionProperty(Session session, String name, boolean def) { return getBoolean(getProp(session.getProperties(), name), def); } private  PropUtil(); static int getIntProperty(Properties props, String name, int def); static boolean getBooleanProperty(Properties props,
				String name, boolean def); static int getIntSessionProperty(Session session,
				String name, int def); static boolean getBooleanSessionProperty(Session session,
				String name, boolean def); static boolean getBooleanSystemProperty(String name, boolean def); }
PropUtil { public static boolean getBooleanSessionProperty(Session session, String name, boolean def) { return getBoolean(getProp(session.getProperties(), name), def); } private  PropUtil(); static int getIntProperty(Properties props, String name, int def); static boolean getBooleanProperty(Properties props,
				String name, boolean def); static int getIntSessionProperty(Session session,
				String name, int def); static boolean getBooleanSessionProperty(Session session,
				String name, boolean def); static boolean getBooleanSystemProperty(String name, boolean def);  }