Skip to content

Commit

Permalink
Add missing CLITestSupport username/password
Browse files Browse the repository at this point in the history
  • Loading branch information
msgilligan committed Jul 31, 2018
1 parent af141ac commit e183719
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
@@ -1,5 +1,6 @@
package org.consensusj.bitcoin.cli.test;

import com.msgilligan.bitcoinj.rpc.test.TestServers;
import org.consensusj.bitcoin.cli.CliCommand;

import java.io.ByteArrayInputStream;
Expand All @@ -13,6 +14,9 @@
* Support functions for testing command-line tools
*/
public interface CLITestSupport {
String rpcUser = TestServers.getInstance().getRpcTestUser();
String rpcPassword = TestServers.getInstance().getRpcTestPassword();

default String[] parseCommandLine(String line) {
String[] args = line.split(" "); // (Overly?) simple parsing of string into args[]
return args;
Expand Down
Expand Up @@ -3,7 +3,7 @@ package com.msgilligan.bitcoinj.rpc
import spock.lang.Specification

/**
*
* Check URI constants for correctness
*/
class RpcURISpec extends Specification {
def "test URI creation methods" () {
Expand Down

0 comments on commit e183719

Please sign in to comment.