/*
 * Copyright (c) 2015, Antonio Gabriel Muñoz Conejo <antoniogmc at gmail dot com>
 * Distributed under the terms of the MIT License
 */

package tonivade.db.command.server;

import org.junit.Rule;
import org.junit.Test;

import tonivade.db.command.CommandRule;
import tonivade.db.command.CommandUnderTest;

@CommandUnderTest(SlaveOfCommand.class)
public class SlaveOfCommandTest {

    @Rule
    public final CommandRule rule = new CommandRule(this);

    @Test
    public void testExecute() throws Exception {
        rule.withParams("localhost", "7081")
            .execute()
            .verify().addSimpleStr("OK");
    }

}

@@ -217,16 +217,47 @@
 .Test;%0A%0A
+import tonivade.db.TinyDBRule;%0A
 import t
@@ -284,24 +284,24 @@
 ommandRule;%0A
-
 import toniv
@@ -409,16 +409,99 @@
 Test %7B%0A%0A
+    @Rule%0A    public final TinyDBRule server = new TinyDBRule(%22localhost%22, 8081);%0A%0A
     @Rul
@@ -663,9 +663,9 @@
 %22, %22
-7
+8
 081%22

fix test