root/trunk/test/unit/dbnp/studycapturing/SimpleQueryControllerTests.groovy @ 1430

Revision 1430, 0.7 KB (checked in by work@…, 3 years ago)

- set keyword expansion

  • Property svn:keywords set to Rev Author Date
Line 
1package dbnp.studycapturing
2
3import grails.test.ControllerUnitTestCase
4import dbnp.query.SimpleQueryController
5
6/**
7 * Created by IntelliJ IDEA.
8 * User: luddenv
9 * Date: 12-jul-2010
10 * Time: 11:29:18
11 * To change this template use File | Settings | File Templates.
12 */
13class SimpleQueryControllerTests extends ControllerUnitTestCase {
14
15  protected void setUp() {
16      super.setUp()
17  }
18
19  protected void tearDown() {
20      super.tearDown()
21  }
22
23  void testMergeResults () {
24      def list1 = [1, 2, 3, 4]
25      def list2 = [1, 3, 5]
26
27      def list3 = SimpleQueryController.mergeLists(list1, list2)
28
29      assert list3 == [1, 3]
30  }
31
32}
Note: See TracBrowser for help on using the browser.