Exceptions not thrown
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882969 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a12632228f
commit
765963f423
|
@ -426,7 +426,7 @@ public class StringEscapeUtilsTest extends TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://issues.apache.org/jira/browse/LANG-339
|
// https://issues.apache.org/jira/browse/LANG-339
|
||||||
public void testEscapeHiragana() throws java.io.UnsupportedEncodingException {
|
public void testEscapeHiragana() {
|
||||||
// Some random Japanese unicode characters
|
// Some random Japanese unicode characters
|
||||||
String original = "\u304B\u304C\u3068";
|
String original = "\u304B\u304C\u3068";
|
||||||
String escaped = StringEscapeUtils.escapeHtml4(original);
|
String escaped = StringEscapeUtils.escapeHtml4(original);
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class BackgroundInitializerTest extends TestCase {
|
||||||
/**
|
/**
|
||||||
* Tests whether initialize() is invoked.
|
* Tests whether initialize() is invoked.
|
||||||
*/
|
*/
|
||||||
public void testInitialize() throws ConcurrentException {
|
public void testInitialize() {
|
||||||
BackgroundInitializerTestImpl init = new BackgroundInitializerTestImpl();
|
BackgroundInitializerTestImpl init = new BackgroundInitializerTestImpl();
|
||||||
init.start();
|
init.start();
|
||||||
checkInitialize(init);
|
checkInitialize(init);
|
||||||
|
|
|
@ -270,7 +270,7 @@ public class MultiBackgroundInitializerTest extends TestCase {
|
||||||
* Tests the behavior of the initializer if one of the child initializers
|
* Tests the behavior of the initializer if one of the child initializers
|
||||||
* throws a runtime exception.
|
* throws a runtime exception.
|
||||||
*/
|
*/
|
||||||
public void testInitializeRuntimeEx() throws ConcurrentException {
|
public void testInitializeRuntimeEx() {
|
||||||
ChildBackgroundInitializer child = new ChildBackgroundInitializer();
|
ChildBackgroundInitializer child = new ChildBackgroundInitializer();
|
||||||
child.ex = new RuntimeException();
|
child.ex = new RuntimeException();
|
||||||
initializer.addInitializer(CHILD_INIT, child);
|
initializer.addInitializer(CHILD_INIT, child);
|
||||||
|
|
Loading…
Reference in New Issue