@Test public void testNullObject() { assertFalse(GovCloudFlagUtil.extractGovCloudFlag(null)); }
public static Boolean extractGovCloudFlag(Object object) { if (object != null) { if (object instanceof Boolean) { return (Boolean) object; } else if (object instanceof String) { return Boolean.parseBoolean((String) object); } } return Boolean.FALSE; }
GovCloudFlagUtil { public static Boolean extractGovCloudFlag(Object object) { if (object != null) { if (object instanceof Boolean) { return (Boolean) object; } else if (object instanceof String) { return Boolean.parseBoolean((String) object); } } return Boolean.FALSE; } }
GovCloudFlagUtil { public static Boolean extractGovCloudFlag(Object object) { if (object != null) { if (object instanceof Boolean) { return (Boolean) object; } else if (object instanceof String) { return Boolean.parseBoolean((String) object); } } return Boolean.FALSE; } private  GovCloudFlagUtil(); }
GovCloudFlagUtil { public static Boolean extractGovCloudFlag(Object object) { if (object != null) { if (object instanceof Boolean) { return (Boolean) object; } else if (object instanceof String) { return Boolean.parseBoolean((String) object); } } return Boolean.FALSE; } private  GovCloudFlagUtil(); static Boolean extractGovCloudFlag(Object object); }
GovCloudFlagUtil { public static Boolean extractGovCloudFlag(Object object) { if (object != null) { if (object instanceof Boolean) { return (Boolean) object; } else if (object instanceof String) { return Boolean.parseBoolean((String) object); } } return Boolean.FALSE; } private  GovCloudFlagUtil(); static Boolean extractGovCloudFlag(Object object); static final String GOV_CLOUD_KEY; }