pragma solidity ^0.4.13; //import "github.com/trufflesuite/truffle/truffle-core/lib/testing/Assert.sol"; //import "truffle/Assert.sol"; //import "truffle/DeployedAddresses.sol"; import "./SupplyChain.sol"; import "./ThrowProxy.sol"; import "./SimpleContract.sol"; contract TestSupplyChain { // Truffle looks for `initialBalance` when it compiles the test suite // and funds this test contract with the specified amount on deployment. //uint public initialBalance = 10 ether; SupplyChain supplyChain = new SupplyChain(); SimpleContract simple = new SimpleContract(); ThrowProxy proxy; // TODO Juan - Refactor needed function pirulo() public{ proxy = new ThrowProxy(address(simple)); // Adding one item as part of the setup. SimpleContract(address(proxy)).returnValue(); bool r = proxy.execute.gas(200000)(); // Assert.isTrue(r, "We are not able to add items."); } }