// Path: moneta-core/src/main/java/org/moneta/types/search/SearchRequest.java
// public class SearchRequest extends BaseType {
// 	
// 	private String topic;
// 	private String[] fieldNames;
// 	private CompositeCriteria searchCriteria;
// 	private Long maxRows;
// 	private Long startRow;
// 	
// 	public String[] getFieldNames() {
// 		return fieldNames;
// 	}
// 	
// 	public void setFieldNames(String[] fieldNames) {
// 		this.fieldNames = fieldNames;
// 	}
// 	
// 	public CompositeCriteria getSearchCriteria() {
// 		return searchCriteria;
// 	}
// 	
// 	public void setSearchCriteria(CompositeCriteria searchCriteria) {
// 		this.searchCriteria = searchCriteria;
// 	}
// 
// 	public Long getMaxRows() {
// 		return maxRows;
// 	}
// 
// 	public void setMaxRows(Long maxRows) {
// 		this.maxRows = maxRows;
// 	}
// 
// 	public String getTopic() {
// 		return topic;
// 	}
// 
// 	public void setTopic(String topic) {
// 		this.topic = topic;
// 	}
// 
// 	public Long getStartRow() {
// 		return startRow;
// 	}
// 
// 	public void setStartRow(Long startRow) {
// 		this.startRow = startRow;
// 	}
// 
// 
// }
// 
// Path: moneta-core/src/main/java/org/moneta/types/search/SearchResult.java
// public class SearchResult extends BaseType {
// 	
// 	private Integer errorCode;
// 	private String errorMessage;
// 
// 	@JsonProperty("records")
// 	private Record[] resultData;
// 	
// 	public Integer getErrorCode() {
// 		return errorCode;
// 	}
// 	
// 	public void setErrorCode(Integer errorCode) {
// 		this.errorCode = errorCode;
// 	}
// 	
// 	public String getErrorMessage() {
// 		return errorMessage;
// 	}
// 	
// 	public void setErrorMessage(String errorMessage) {
// 		this.errorMessage = errorMessage;
// 	}
// 	
// 	public Record[] getResultData() {
// 		return resultData;
// 	}
// 
// 	public void setResultData(Record[] resultData) {
// 		this.resultData = resultData;
// 	}
// 
// }


import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.moneta.types.search.SearchRequest;
import org.moneta.types.search.SearchResult;

/*
 * This software is licensed under the Apache License, Version 2.0
 * (the "License") agreement; you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.moneta;


public class MonetaTest extends MonetaTestBase {
	
	SearchRequest searchRequest;
	Moneta moneta;

	@Before
	public void setUp() throws Exception {
		super.setUp();
		moneta = new Moneta();
		searchRequest = new SearchRequest();		
		searchRequest.setTopic("Environment");
	}

	@Test
	public void testBasic() throws Exception {

// Path: moneta-core/src/main/java/org/moneta/types/search/SearchRequest.java
// public class SearchRequest extends BaseType {
// 	
// 	private String topic;
// 	private String[] fieldNames;
// 	private CompositeCriteria searchCriteria;
// 	private Long maxRows;
// 	private Long startRow;
// 	
// 	public String[] getFieldNames() {
// 		return fieldNames;
// 	}
// 	
// 	public void setFieldNames(String[] fieldNames) {
// 		this.fieldNames = fieldNames;
// 	}
// 	
// 	public CompositeCriteria getSearchCriteria() {
// 		return searchCriteria;
// 	}
// 	
// 	public void setSearchCriteria(CompositeCriteria searchCriteria) {
// 		this.searchCriteria = searchCriteria;
// 	}
// 
// 	public Long getMaxRows() {
// 		return maxRows;
// 	}
// 
// 	public void setMaxRows(Long maxRows) {
// 		this.maxRows = maxRows;
// 	}
// 
// 	public String getTopic() {
// 		return topic;
// 	}
// 
// 	public void setTopic(String topic) {
// 		this.topic = topic;
// 	}
// 
// 	public Long getStartRow() {
// 		return startRow;
// 	}
// 
// 	public void setStartRow(Long startRow) {
// 		this.startRow = startRow;
// 	}
// 
// 
// }
// 
// Path: moneta-core/src/main/java/org/moneta/types/search/SearchResult.java
// public class SearchResult extends BaseType {
// 	
// 	private Integer errorCode;
// 	private String errorMessage;
// 
// 	@JsonProperty("records")
// 	private Record[] resultData;
// 	
// 	public Integer getErrorCode() {
// 		return errorCode;
// 	}
// 	
// 	public void setErrorCode(Integer errorCode) {
// 		this.errorCode = errorCode;
// 	}
// 	
// 	public String getErrorMessage() {
// 		return errorMessage;
// 	}
// 	
// 	public void setErrorMessage(String errorMessage) {
// 		this.errorMessage = errorMessage;
// 	}
// 	
// 	public Record[] getResultData() {
// 		return resultData;
// 	}
// 
// 	public void setResultData(Record[] resultData) {
// 		this.resultData = resultData;
// 	}
// 
// }


// Path: moneta-core/src/test/java/org/moneta/MonetaTest.java
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.moneta.types.search.SearchRequest;
import org.moneta.types.search.SearchResult;

/*
 * This software is licensed under the Apache License, Version 2.0
 * (the "License") agreement; you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.moneta;


public class MonetaTest extends MonetaTestBase {
	
	SearchRequest searchRequest;
	Moneta moneta;

	@Before
	public void setUp() throws Exception {
		super.setUp();
		moneta = new Moneta();
		searchRequest = new SearchRequest();		
		searchRequest.setTopic("Environment");
	}

	@Test
	public void testBasic() throws Exception {

		SearchResult result = moneta.find(searchRequest);
