View | Details | Raw Unified | Return to bug 56425
Collapse All | Expand All

(-)test/javax/el/TesterBean.java (+8 lines)
Lines 40-43 Link Here
40
    public String getValueA() throws Exception {
40
    public String getValueA() throws Exception {
41
        throw new Exception();
41
        throw new Exception();
42
    }
42
    }
43
44
    public String setValueInt(Integer value) {
45
        return "Invoke setValueInt(Integer value) with :" + value;
46
    }
47
48
    public String setValueInt(int value) throws Exception {
49
        return "Invoke setValueInt(int value) with :" + value;
50
    }
43
}
51
}
(-)test/javax/el/TestUtil.java (-1 / +9 lines)
Lines 41-49 Link Here
41
41
42
42
43
    @Test
43
    @Test
44
    public void testBug56425() {
44
    public void testBug56425a() {
45
        ELProcessor processor = new ELProcessor();
45
        ELProcessor processor = new ELProcessor();
46
        processor.defineBean("string", "a-b-c-d");
46
        processor.defineBean("string", "a-b-c-d");
47
        Assert.assertEquals("a_b_c_d", processor.eval("string.replace(\"-\",\"_\")"));
47
        Assert.assertEquals("a_b_c_d", processor.eval("string.replace(\"-\",\"_\")"));
48
        Assert.assertEquals("5", processor.eval("string.valueOf(5)"));
48
    }
49
    }
50
51
    @Test
52
    public void testBug56425b() {
53
        ELProcessor processor = new ELProcessor();
54
        processor.defineBean("test", new TesterBean("test"));
55
        Assert.assertEquals("Invoke setValueInt(int value) with :5", processor.eval("test.setValueInt(5)"));
56
    }
49
}
57
}

Return to bug 56425