| Mock.java |
1 package comtest;
2
3 /**
4 * This class is just for making test for comtest
5 * @author vesal
6 *
7 */
8 public class Mock {
9
10
11 /**
12 * Method just for cheking what the test outputs
13 *
14 * @example
15 * <pre name="test">
16 * Strings contents = new Strings();
17 * ComTest.ComTestScanner scanner = new ComTest.ComTestScanner(contents);
18 * try { scanner.findNames("test"); } catch (java.io.IOException e) { }
19 * Strings out = scanner.getOutlines();
20 * ComTest.ComTestScanner.CommentCodeHandler codeHandler = scanner.createCommentCodeHandler();
21 * Strings initCmnds = codeHandler.getInitCmnds();
22 *
23 * initCmnds.clear();
24 * codeHandler.handleSentences("get(request,new String[]{\"str\",\"id\"},13,true) === 123;");
25 * codeHandler.outNewHeader();
26 * out.get(1) === "kissa";
27 * initCmnds.get(1) === "assertEquals(\"From: test line: 1\", 5, a)";
28 *
29 *
30 * </pre>
31 */
32 public static void first() {
33 return;
34 }
35
36 /**
37 * @example
38 * <pre name="test">
39 * int a = 5; int b = 6;
40 * if ( a > 4 ) { a === 5; } else b === 6;
41 * </pre>
42 *
43 */
44 public static void first1() {
45 return;
46 }
47
48 }
49