1 package org
.argeo
.slc
.it
.webapp
;
3 import org
.argeo
.slc
.Condition
;
4 import org
.argeo
.slc
.core
.test
.tree
.TreeTestResultList
;
5 import org
.argeo
.slc
.process
.SlcExecution
;
6 import org
.argeo
.slc
.server
.client
.SlcServerHttpClient
;
7 import org
.argeo
.slc
.server
.unit
.AbstractHttpClientTestCase
;
9 public class SimpleScenarioTest
extends AbstractHttpClientTestCase
{
10 public void testSimpleScenario() throws Exception
{
11 String moduleName
= "org.argeo.slc.demo.basic";
12 SlcExecution slcExecution
= getHttpClient().startFlowDefault(
13 moduleName
, "main", null);
15 getHttpClient().callServiceSafe(SlcServerHttpClient
.LIST_RESULTS
, null,
16 new Condition
<TreeTestResultList
>() {
18 public Boolean
check(TreeTestResultList obj
) {
19 return obj
.getList().size() == 3;
24 getHttpClient().callServiceSafe(SlcServerHttpClient
.LIST_RESULTS
, null,
25 new Condition
<TreeTestResultList
>() {
27 public Boolean
check(TreeTestResultList obj
) {
28 return obj
.getList().size() == 3;