assertAsBoolean(true, "TRUE");
assertAsBoolean(true, "false");
assertAsBoolean(false, Boolean.FALSE);
assertAsBoolean(false, (String) null);
assertAsBoolean(false, "");
GString emptyGString = new GString(new Object[]{""}) {
public String[] getStrings() {
return new String[]{""};
}
};
assertAsBoolean(false, emptyGString);
GString nonEmptyGString = new GString(new Object[]{"x"}) {
public String[] getStrings() {
return new String[]{"x"};
}
};
assertAsBoolean(true, nonEmptyGString);