1
2
3
4
5
6
7
8
9
10 package org.mule.module.ibeans.annotations;
11
12 import org.ibeans.impl.view.TextView;
13 import org.junit.Test;
14
15 import static org.junit.Assert.assertNotNull;
16 import static org.junit.Assert.assertTrue;
17
18
19
20
21
22 public class TextUsageViewTestCase extends AbstractIBeansTestCase
23 {
24 @Test
25 public void testUsageView() throws Exception
26 {
27 TextView view = new TextView();
28 String string = view.createView(TestUriIBean.class);
29
30 assertNotNull(string);
31 System.out.println(string);
32
33 assertTrue(string.contains("doSomething("));
34 assertTrue(string.contains("doSomethingElse("));
35 assertTrue(string.contains("doSomethingNoParams("));
36 }
37 }