package com.domeke.app.utils;

import static org.junit.Assert.assertEquals;

import org.apache.solr.client.solrj.SolrServerException;
import org.junit.Test;

import com.domeke.app.model.vo.WorksVO;
import com.domeke.app.solr.utils.SolrKit;
import com.jfinal.plugin.activerecord.Page;

public class SolrKitTest {

	@Test
	public void test() {
		Page page = new Page(null, 1, 2, 0, 0);
		try {
			page = SolrKit.query(new String[] { "worksname", "desc" }, "变形", new WorksVO(), page);
			assertEquals(1, page.getPageNumber());
		} catch (SolrServerException e) {
			e.printStackTrace();
		}

	}
}

@@ -473,20 +473,16 @@
 %E5%8F%98%E5%BD%A2%22,
- new
  WorksVO
 (), 
@@ -477,18 +477,22 @@
  WorksVO
-()
+.class
 , page);

modify SolrKitTest