1 package fr.ifremer.dali.dao;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 public class DaliDatabaseFixtures {
27
28 DaliDatabaseFixtures() {
29 }
30
31 public int getUserIdWithDataForSynchro() {
32 return 2;
33 }
34
35 public int getPmfmId(int index) {
36 if (index == 0) {
37 return 630;
38 }
39 throw new IllegalArgumentException("no PMFM found in fixtures, for index=" + index);
40 }
41
42 public int getPmfmIdWithTranscribing() {
43 return getPmfmId(0);
44 }
45
46 public int getUnvalidatedSurveyId() {
47 return 103;
48 }
49
50 public int getValidatedSurveyId() {
51 return 110;
52 }
53
54 public String getProgramCode() {
55 return "REMIS";
56 }
57
58 public String getRuleListCode(int index) {
59 switch (index) {
60 case 0:
61 return "RULELIST1";
62 case 1:
63 return "RULELIST2";
64 }
65 throw new IllegalArgumentException("no rule list code found in fixtures, for index=" + index);
66 }
67 }