/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.ocelotds.objects;

import org.junit.Test;
import static org.assertj.core.api.Assertions.*;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Spy;
import org.mockito.runners.MockitoJUnitRunner;

/**
 *
 * @author hhfrancois
 */
@RunWith(MockitoJUnitRunner.class)
public class OptionsTest {

	@InjectMocks
	@Spy
	Options instance;

	/**
	 * Test of isMonitor method, of class Options.
	 */
	@Test
	public void testIsMonitor() {
		System.out.println("isMonitor");
		instance.monitor = false;
		boolean result = instance.isMonitor();
		assertThat(result).isFalse();
		instance.monitor = true;
		result = instance.isMonitor();
		assertThat(result).isTrue();
	}

	/**
	 * Test of setMonitor method, of class Options.
	 */
	@Test
	public void testSetMonitor() {
		System.out.println("setMonitor");
		instance.setMonitor(false);
		assertThat(instance.monitor).isFalse();
		instance.setMonitor(true);
		assertThat(instance.monitor).isTrue();
	}

	/**
	 * Test of isDebug method, of class Options.
	 */
	@Test
	public void testIsDebug() {
		System.out.println("isDebug");
		instance.debug = false;
		boolean result = instance.isDebug();
		assertThat(result).isFalse();
		instance.debug = true;
		result = instance.isDebug();
		assertThat(result).isTrue();
	}

	/**
	 * Test of setDebug method, of class Options.
	 */
	@Test
	public void testSetDebug() {
		System.out.println("setDebug");
		instance.setDebug(false);
		assertThat(instance.debug).isFalse();
		instance.setDebug(true);
		assertThat(instance.debug).isTrue();
	}
}
@@ -1173,32 +1173,667 @@
 ).isTrue();%0A%09%7D%0A%0A
+%09/**%0A%09 * Test of isReconnect method, of class Options.%0A%09 */%0A%09@Test%0A%09public void testIsReconnect() %7B%0A%09%09System.out.println(%22isReconnect%22);%0A%09%09instance.reconnect = false;%0A%09%09boolean result = instance.isReconnect();%0A%09%09assertThat(result).isFalse();%0A%09%09instance.reconnect = true;%0A%09%09result = instance.isReconnect();%0A%09%09assertThat(result).isTrue();%0A%09%7D%0A%0A%09/**%0A%09 * Test of setReconnect method, of class Options.%0A%09 */%0A%09@Test%0A%09public void testSetReconnect() %7B%0A%09%09System.out.println(%22setReconnect%22);%0A%09%09instance.setReconnect(false);%0A%09%09assertThat(instance.reconnect).isFalse();%0A%09%09instance.setReconnect(true);%0A%09%09assertThat(instance.reconnect).isTrue();%0A%09%7D%0A%0A
 %09/**%0A%09 * Test of

improve test coverage