Issue #5684 Fix testSetBadBoolean and remove @Disabled (#5875)

Signed-off-by: Jan Bartel <janb@webtide.com>
This commit is contained in:
Jan Bartel 2021-01-12 17:48:37 +01:00 committed by GitHub
parent 03ec5bb773
commit a5a8327a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1046,7 +1046,6 @@ public class XmlConfigurationTest
}
@Test
@Disabled
public void testSetBadBoolean() throws Exception
{
XmlConfiguration xmlConfiguration = asXmlConfiguration(
@ -1054,8 +1053,10 @@ public class XmlConfigurationTest
" <Set name=\"boolean\">tru</Set>" +
"</Configure>");
//Any string other than "true" (case insensitive) will be false
//according to Boolean constructor.
NativeHolder bh = (NativeHolder)xmlConfiguration.configure();
assertTrue(bh.getBoolean(), "boolean['tru']");
assertFalse(bh.getBoolean(), "boolean['tru']");
}
@Test