mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-01 11:29:29 +00:00
Signed-off-by: Jan Bartel <janb@webtide.com>
This commit is contained in:
parent
03ec5bb773
commit
a5a8327a1e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user