Last change
on this file since 1473 was
1473,
checked in by s.h.sikkema@…, 10 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
|
File size:
615 bytes
|
Line | |
---|
1 | package dbnp.query |
---|
2 | |
---|
3 | import 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 | */ |
---|
12 | class 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 repository browser.