@Test public void testInvocationBuilderWithInvalidFunction() { final ContractAddress address = new ContractAddress(encodedAddress); final String version = randomUUID().toString(); final String language = randomUUID().toString(); final ContractFunction function = new ContractFunction(functionName); final List<ContractFunction> functions = new ArrayList<ContractFunction>(); functions.add(function); final List<StateVariable> stateVariables = new ArrayList<StateVariable>(); final ContractInterface contractInterface = ContractInterface.newBuilder() .address(address) .version(version) .language(language) .functions(functions) .stateVariables(stateVariables) .build(); final Object[] args = new Object[]{randomUUID().toString(), randomUUID().toString()}; try { contractInterface.newInvocationBuilder() .function(randomUUID().toString()) .args(args) .build(); fail(); } catch (Exception e) { } }
public ContractInvocationWithNothing newInvocationBuilder() { return new ContractInterface.InvocationBuilder(this); }
ContractInterface { public ContractInvocationWithNothing newInvocationBuilder() { return new ContractInterface.InvocationBuilder(this); } }
ContractInterface { public ContractInvocationWithNothing newInvocationBuilder() { return new ContractInterface.InvocationBuilder(this); }  }
ContractInterface { public ContractInvocationWithNothing newInvocationBuilder() { return new ContractInterface.InvocationBuilder(this); }  ContractFunction findFunction(final String functionName); ContractInvocationWithNothing newInvocationBuilder(); }
ContractInterface { public ContractInvocationWithNothing newInvocationBuilder() { return new ContractInterface.InvocationBuilder(this); }  ContractFunction findFunction(final String functionName); ContractInvocationWithNothing newInvocationBuilder();  }