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

测试类,如何指定端口,我看现在的哪个测试类,指定端口没有这块逻辑 #5

Open
hotsmile opened this issue Apr 12, 2019 · 0 comments

Comments

@hotsmile
Copy link

public static void main(String[] args) throws Exception {
    int count = 1;
    String serverHost = "127.0.0.1";
    int sleep = 1000;

    if (args != null && args.length > 0) {
        count = Integer.parseInt(args[0]);
        if (args.length > 1) {
            serverHost = args[1];
        }
        if (args.length > 2) {
            sleep = Integer.parseInt(args[1]);
        }

这块取的参数都是一个呀?

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

No branches or pull requests

1 participant