/* 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();
	}
}
/* 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 isReconnect method, of class Options.
	 */
	@Test
	public void testIsReconnect() {
		System.out.println("isReconnect");
		instance.reconnect = false;
		boolean result = instance.isReconnect();
		assertThat(result).isFalse();
		instance.reconnect = true;
		result = instance.isReconnect();
		assertThat(result).isTrue();
	}

	/**
	 * Test of setReconnect method, of class Options.
	 */
	@Test
	public void testSetReconnect() {
		System.out.println("setReconnect");
		instance.setReconnect(false);
		assertThat(instance.reconnect).isFalse();
		instance.setReconnect(true);
		assertThat(instance.reconnect).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();
	}
}
improve test coverage