Skip to content

Commit

Permalink
Merge pull request #7 from cocoleecoco/master
Browse files Browse the repository at this point in the history
0.6.0 release
  • Loading branch information
danielgogo authored Apr 25, 2019
2 parents d89ab26 + ebb26dc commit 5d41da2
Show file tree
Hide file tree
Showing 43 changed files with 946 additions and 650 deletions.
1 change: 0 additions & 1 deletion .github/CODEOWNERS

This file was deleted.

9 changes: 0 additions & 9 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

1 change: 1 addition & 0 deletions abi/src/test/java/org/web3j/abi/UtilsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import static org.hamcrest.MatcherAssert.assertThat;
import static org.web3j.abi.Utils.typeMap;

@SuppressWarnings("unchecked")
public class UtilsTest {

@Test
Expand Down
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ subprojects {
testCompile "junit:junit:$junitVersion",
"org.mockito:mockito-core:$mockitoVersion"
}

tasks.withType(JavaCompile){
options.encoding = "UTF-8"
}
}

configure(subprojects.findAll { it.name != 'integration-tests' }) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ public void setUp() throws Exception {

@Test
public void testHumanStandardTokenGeneration() throws Exception {
// testCodeGenerationJvmTypes("contracts", "token");
// testCodeGenerationSolidityTypes("contracts", "token");


testCodeGenerationJvmTypes("contracts", "multisig", TXTypeEnum.WASM.name());
//testCodeGenerationJvmTypes("contracts", "multisig", TXTypeEnum.WASM.name());
testCodeGenerationJvmTypes("contracts", "candidateContract", TXTypeEnum.WASM.name());

//testCodeGenerationJvmTypes("contracts", "ticketContract", TXTypeEnum.WASM.name());
//testCodeGenerationSolidityTypes("contracts", "multisig");
}

private void testCodeGenerationJvmTypes(String contractName, String inputFileName, String txType) throws Exception {
Expand All @@ -53,6 +55,7 @@ private void testCodeGenerationSolidityTypes(String contractName, String inputFi
private void testCodeGeneration(String contractName, String inputFileName, String packageName, String types, String txType)
throws Exception {

//tempDirPath = "D:\\Workspace\\client-sdk-java\\codegen\\src\\test\\java";
SophiaFunctionWrapperGenerator.main(Arrays.asList(
types,
solidityBaseDir + File.separator + contractName + File.separator
Expand All @@ -62,7 +65,7 @@ private void testCodeGeneration(String contractName, String inputFileName, Strin
"-p", packageName,
"-o", tempDirPath,
"-t", txType
).toArray(new String[0]));
).toArray(new String[0])); // https://shipilev.net/blog/2016/arrays-wisdom-ancients/

verifyGeneratedCode(tempDirPath + File.separator
+ packageName.replace('.', File.separatorChar) + File.separator
Expand Down

This file was deleted.

Loading

0 comments on commit 5d41da2

Please sign in to comment.