Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ publishing {
pom {
name = 'fisco-bcos'
description = 'fisco-bcos java-sdk'
url = 'http://www.fisco-bcos.org'
url = 'https://github.com/FISCO-BCOS/java-sdk'

licenses {
license {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public class ProposalInfo extends DynamicStruct {

public ProposalInfo() {
super(
new Address(""),
Address.DEFAULT,
Address.DEFAULT,
new Uint8(0),
Comment on lines 22 to 26
new Uint256(0),
new Uint8(0),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package org.fisco.bcos.sdk.v3.test.contract.auth;

import org.fisco.bcos.sdk.v3.codec.datatypes.Address;
import org.fisco.bcos.sdk.v3.contract.auth.po.ProposalInfo;
import org.junit.Assert;
import org.junit.Test;

public class ProposalInfoTest {

@Test
public void testDefaultConstructor() {
ProposalInfo proposalInfo = new ProposalInfo();

Assert.assertEquals(7, proposalInfo.getValue().size());
Assert.assertEquals(
"(address,address,uint8,uint256,uint8,address[],address[])",
proposalInfo.getTypeAsString());
Assert.assertEquals(Address.DEFAULT, proposalInfo.getValue().get(0));
Assert.assertEquals(Address.DEFAULT, proposalInfo.getValue().get(1));
}
}
Loading