mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add '-id' argument, improve print result in cmd tool
This commit is contained in:
@@ -35,6 +35,13 @@ public class OptionTest extends TestCase {
|
||||
Assert.assertFalse(opt.printActiveConn());
|
||||
Assert.assertEquals(opt.getStyle(), Option.PrintStyle.VERTICAL);
|
||||
Assert.assertEquals(opt.getVmid(), 1319);
|
||||
|
||||
cmdArray = new String[] {"-sql","-id","5","200"};
|
||||
opt = Option.parseOptions(cmdArray);
|
||||
Assert.assertNotNull(opt);
|
||||
Assert.assertEquals(opt.getId(), 5);
|
||||
Assert.assertEquals(opt.getVmid(), 200);
|
||||
|
||||
|
||||
|
||||
//not enough arguments
|
||||
|
||||
Reference in New Issue
Block a user