|
|
@@ -1,5 +1,6 @@
|
|
|
package com.izouma.jiashanxia.web;
|
|
|
|
|
|
+import com.izouma.jiashanxia.domain.Package;
|
|
|
import com.izouma.jiashanxia.dto.PageQuery;
|
|
|
import org.junit.Test;
|
|
|
import org.junit.runner.RunWith;
|
|
|
@@ -8,6 +9,7 @@ import org.springframework.boot.test.context.SpringBootTest;
|
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.util.List;
|
|
|
|
|
|
@SpringBootTest
|
|
|
@RunWith(SpringRunner.class)
|
|
|
@@ -18,7 +20,8 @@ public class PackageControllerTest {
|
|
|
|
|
|
@Test
|
|
|
public void all() {
|
|
|
- packageController.all(new PageQuery());
|
|
|
+ List<Package> content = packageController.all(new PageQuery()).getContent();
|
|
|
+ content.forEach(c->System.out.println(c.getShareAmount()));
|
|
|
}
|
|
|
|
|
|
@Test
|