Skip to content

Commit 1eda1ed

Browse files
Ajit GeorgeAjit George
authored andcommitted
Modified test case for Git Issue 222 to search on range index on Integer
property type.
1 parent 97f58e6 commit 1eda1ed

File tree

2 files changed

+276
-102
lines changed

2 files changed

+276
-102
lines changed
Lines changed: 66 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,66 @@
1-
/*
2-
* Copyright 2014-2015 MarkLogic Corporation
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
16-
17-
package com.marklogic.client.functionaltest;
18-
19-
import com.marklogic.client.pojo.annotation.Id;
20-
import com.marklogic.client.pojo.annotation.PathIndexProperty;
21-
import com.marklogic.client.pojo.annotation.PathIndexProperty.ScalarType;
22-
23-
/*
24-
* This class is similar to the Artifact class. It is used to test path range index
25-
* using the inventory field with Integer type.
26-
* Property name been annotated with @Id.
27-
*/
28-
public class ArtifactIndexedOnInteger {
29-
@Id
30-
public String name;
31-
public long id;
32-
private Company manufacturer;
33-
34-
@PathIndexProperty(scalarType = ScalarType.INT)
35-
private Integer inventory;
36-
37-
public long getId() {
38-
return id;
39-
}
40-
41-
public ArtifactIndexedOnInteger setId(long id) {
42-
this.id = id;
43-
return this;
44-
}
45-
46-
public String getName() {
47-
return name;
48-
}
49-
50-
public ArtifactIndexedOnInteger setName(String name) {
51-
this.name = name;
52-
return this;
53-
}
54-
55-
public Company getManufacturer() {
56-
return manufacturer;
57-
}
58-
59-
public ArtifactIndexedOnInteger setManufacturer(Company manufacturer) {
60-
this.manufacturer = manufacturer;
61-
return this;
62-
}
63-
64-
public Integer getInventory() {
65-
return inventory;
66-
}
67-
68-
public ArtifactIndexedOnInteger setInventory(Integer inventory) {
69-
this.inventory = inventory;
70-
return this;
71-
}
72-
}
1+
package com.marklogic.client.functionaltest;
2+
3+
import com.marklogic.client.pojo.annotation.Id;
4+
import com.marklogic.client.pojo.annotation.PathIndexProperty;
5+
import com.marklogic.client.pojo.annotation.PathIndexProperty.ScalarType;
6+
7+
/*
8+
* This class is similar to the Artifact class. It is used to test path range index
9+
* using the inventory field with Integer type.
10+
* Property name been annotated with @Id.
11+
*/
12+
public class ArtifactIndexedOnInteger {
13+
@Id
14+
public String name;
15+
public long id;
16+
private Company manufacturer;
17+
18+
@PathIndexProperty(scalarType = ScalarType.INT)
19+
private Integer inventory;
20+
private int inventory1;
21+
22+
public int getInventory1() {
23+
return inventory1;
24+
}
25+
26+
public ArtifactIndexedOnInteger setInventory1(int inventory1) {
27+
this.inventory1 = inventory1;
28+
return this;
29+
}
30+
31+
public long getId() {
32+
return id;
33+
}
34+
35+
public ArtifactIndexedOnInteger setId(long id) {
36+
this.id = id;
37+
return this;
38+
}
39+
40+
public String getName() {
41+
return name;
42+
}
43+
44+
public ArtifactIndexedOnInteger setName(String name) {
45+
this.name = name;
46+
return this;
47+
}
48+
49+
public Company getManufacturer() {
50+
return manufacturer;
51+
}
52+
53+
public ArtifactIndexedOnInteger setManufacturer(Company manufacturer) {
54+
this.manufacturer = manufacturer;
55+
return this;
56+
}
57+
58+
public Integer getInventory() {
59+
return inventory;
60+
}
61+
62+
public ArtifactIndexedOnInteger setInventory(Integer inventory) {
63+
this.inventory = inventory;
64+
return this;
65+
}
66+
}

0 commit comments

Comments
 (0)