Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat][test-tool][v0.1.0] add plugin test tool #53

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sulc23
Copy link

@sulc23 sulc23 commented Aug 27, 2024

No description provided.

import com.ali.antchain.service.EthereumBBCService;
import com.alipay.antchain.bridge.commons.bbc.AbstractBBCContext;

public class ETHQuerySDPMessageSeqTest {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个类直接用通用的测试类即可,不涉及eth特有的操作

import com.alipay.antchain.bridge.commons.bbc.AbstractBBCContext;
import org.web3j.tx.gas.DefaultGasProvider;

public class ETHSetAmContractAndLocalDomainTest {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setAmContract setLocaldmain建议分开,这是两个接口,之前的单测是为了方便写在一起了,这里作为一个通用测试工具的话,需要对每个接口进行单元测试。还有这两接口的测试你看下涉及的内容,只是调用bbc接口就可以了,说明也不涉及eth特有的部分


import java.math.BigInteger;

public class ETHSetProtocolTest {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用通用测试类,不涉及eth特有的操作

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants