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