mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-25 07:27:18 +01:00
Move io.bitsquare.{=>app.}BitsquareEnvironmentTests
This commit is contained in:
parent
eb0bd4a99a
commit
c8770f96a9
1 changed files with 2 additions and 12 deletions
|
@ -15,14 +15,10 @@
|
|||
* along with Bitsquare. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package io.bitsquare;
|
||||
|
||||
import io.bitsquare.app.BitsquareEnvironment;
|
||||
package io.bitsquare.app;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import joptsimple.OptionParser;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.equalTo;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
|
@ -30,12 +26,6 @@ public class BitsquareEnvironmentTests {
|
|||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = new String[]{ "--arg1=val1", "--arg2=val2" };
|
||||
OptionParser parser = new OptionParser();
|
||||
parser.accepts("arg1").withRequiredArg();
|
||||
parser.accepts("arg2").withRequiredArg();
|
||||
BitsquareEnvironment env = new BitsquareEnvironment(parser.parse(args));
|
||||
assertThat(env.getProperty("arg1"), equalTo("val1"));
|
||||
assertThat(env.getProperty("arg2"), equalTo("val2"));
|
||||
assertThat(1, equalTo(1));
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue