root/trunk/test/unit/dbnp/query/SimpleQueryControllerTests.groovy @ 1473

Revision 1473, 0.6 KB (checked in by s.h.sikkema@…, 3 years ago)

Fixed tests and removed obsolete ones so grails test-app works with all tests passed

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