Move io.bitsquare.{=>app.}BitsquareEnvironmentTests

This commit is contained in:
Chris Beams 2014-11-11 17:07:59 +01:00
parent eb0bd4a99a
commit c8770f96a9
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73

View file

@ -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));
}
}