Introduced Scollection

This commit is contained in:
2018-12-08 12:17:53 +01:00
parent 6d24eb67b9
commit 8dbe6cfe6d
10 changed files with 116 additions and 40 deletions

View File

@ -66,7 +66,7 @@ public class ExchangeTest {
public void testCreateAccount() {
System.out.println("createAccount");
WorldAdm worldadm = new opensesim.world.WorldAdm(new JSONObject(
GodWorld godworld = new opensesim.world.GodWorld(new JSONObject(
"{ assets: [ "
+ "{"
+ "symbol: EUR,"
@ -85,8 +85,14 @@ public class ExchangeTest {
+ "}"
));
World world = godworld.getWorld();
AssetPair ap = new AssetPair(world,"EUR","AAPL");
Exchange instance = new Exchange(null, (JSONObject) null);
Account expResult = null;
Account result = instance.createAccount();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.

View File

@ -51,11 +51,11 @@ public class OrderTest {
public static void tearDownClass() {
}
RealWorld world;
GodWorld world;
@Before
public void setUp() {
world = new RealWorld(new JSONObject("{}"));
world = new GodWorld(new JSONObject("{}"));
}
@After