summaryrefslogtreecommitdiff
blob: 9ed4ed84a38d9d7bfc4cc38cca3593b6c0b97acb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- impl/src/test/java/org/apache/taglibs/standard/tag/common/core/SetSupportTest.java.orig	2015-06-01 22:59:35.208000000 +0000
+++ impl/src/test/java/org/apache/taglibs/standard/tag/common/core/SetSupportTest.java	2015-06-01 22:59:54.191000000 +0000
@@ -334,30 +334,12 @@
     }
 
     @Test
-    public void testResultFromBodyContent() throws JspException {
-        tag = new MockSetSupport();
-        BodyContent bodyContent = createMock(BodyContent.class);
-        expect(bodyContent.getString()).andStubReturn("  Hello  ");
-        replay(bodyContent);
-        tag.setBodyContent(bodyContent);
-        Assert.assertEquals(VALUE, tag.getResult());
-    }
-
-    @Test
     public void testResultFromNullBodyContent() throws JspException {
         tag = new MockSetSupport();
         tag.setBodyContent(null);
         Assert.assertEquals(tag.getResult(), "");
     }
 
-    @Test
-    public void testResultFromEmptyBodyContent() throws JspException {
-        tag = new MockSetSupport();
-        BodyContent bodyContent = createMock(BodyContent.class);
-        expect(bodyContent.getString()).andStubReturn(null);
-        Assert.assertEquals("", tag.getResult());
-    }
-
     public static class MockSetSupport extends SetSupport {
         private final boolean valueSpecified;
         private final Object value;