Rename test packages.
Add .query prefix to properties.
This commit is contained in:
@ -67,7 +67,7 @@ public class QueryRestConfig {
|
|||||||
private Set<String> defaultResponseFields() {
|
private Set<String> defaultResponseFields() {
|
||||||
List<String> defaultFields = Arrays.asList(
|
List<String> defaultFields = Arrays.asList(
|
||||||
StringUtils.commaDelimitedListToStringArray(
|
StringUtils.commaDelimitedListToStringArray(
|
||||||
env.getProperty("rest.default.response.fields")
|
env.getProperty("queryrest.default.response.fields")
|
||||||
));
|
));
|
||||||
Set<String> defaultResponseFields = Sets.newHashSet(defaultFields.iterator());
|
Set<String> defaultResponseFields = Sets.newHashSet(defaultFields.iterator());
|
||||||
return defaultResponseFields;
|
return defaultResponseFields;
|
||||||
|
@ -3,4 +3,4 @@ server.port=8080
|
|||||||
|
|
||||||
# defines the fields that are included in the response
|
# defines the fields that are included in the response
|
||||||
# if no fields have been specified by the user
|
# if no fields have been specified by the user
|
||||||
rest.default.response.fields=channel,pulseId,globalMillis,globalNanos,value
|
queryrest.default.response.fields=channel,pulseId,globalMillis,globalNanos,value
|
@ -1,4 +1,4 @@
|
|||||||
package ch.psi.daq.test.rest;
|
package ch.psi.daq.test.queryrest;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
@ -1,4 +1,4 @@
|
|||||||
package ch.psi.daq.test.rest;
|
package ch.psi.daq.test.queryrest;
|
||||||
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.context.annotation.Import;
|
import org.springframework.context.annotation.Import;
|
@ -1,4 +1,4 @@
|
|||||||
package ch.psi.daq.test.rest.controller;
|
package ch.psi.daq.test.queryrest.controller;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -21,7 +21,7 @@ import ch.psi.daq.query.model.PulseRangeQuery;
|
|||||||
import ch.psi.daq.query.model.TimeRangeQuery;
|
import ch.psi.daq.query.model.TimeRangeQuery;
|
||||||
import ch.psi.daq.query.range.QueryRange;
|
import ch.psi.daq.query.range.QueryRange;
|
||||||
import ch.psi.daq.query.range.QueryRangeImpl;
|
import ch.psi.daq.query.range.QueryRangeImpl;
|
||||||
import ch.psi.daq.test.rest.AbstractDaqRestTest;
|
import ch.psi.daq.test.queryrest.AbstractDaqRestTest;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the {@link DaqController} implementation.
|
* Tests the {@link DaqController} implementation.
|
@ -1,4 +1,4 @@
|
|||||||
package ch.psi.daq.test.rest.queries;
|
package ch.psi.daq.test.queryrest.queries;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
@ -1,4 +1,4 @@
|
|||||||
package ch.psi.daq.test.rest.queries;
|
package ch.psi.daq.test.queryrest.queries;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
@ -1,4 +1,4 @@
|
|||||||
package ch.psi.daq.test.rest.queries;
|
package ch.psi.daq.test.queryrest.queries;
|
||||||
|
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
package ch.psi.daq.test.rest.query;
|
package ch.psi.daq.test.queryrest.query;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
Reference in New Issue
Block a user