// Path: quantum/src/main/java/com/ars/quantum/exception/RegisterOverflowException.java
// public class RegisterOverflowException extends Exception {
// 	/**
// 	 * 
// 	 */
// 	private static final long serialVersionUID = 4071226864956577717L;
// 
// 	public RegisterOverflowException(){
// 		super("Register size exceeded!");
// 	}
// }


import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.ars.quantum.exception.RegisterOverflowException;
package com.ars.qubits;




public class QRegisterTest {
	private QRegister			qRegister;
	private static final int	REGISTER_LENGTH	= 3;

	@Before
	public void setUp() throws Exception {

	}

	@After
	public void tearDown() throws Exception {
		qRegister = null;
	}

	@Test
	public void testSizeNoElementsWithoutInit() {
		qRegister = new QRegister(REGISTER_LENGTH);
		assertEquals(3, qRegister.size());
	}

	@Test
	public void testAddElementsWithoutInit() {
		qRegister = new QRegister(REGISTER_LENGTH);
		try {
			qRegister.add(new QubitOne());
// Path: quantum/src/main/java/com/ars/quantum/exception/RegisterOverflowException.java
// public class RegisterOverflowException extends Exception {
// 	/**
// 	 * 
// 	 */
// 	private static final long serialVersionUID = 4071226864956577717L;
// 
// 	public RegisterOverflowException(){
// 		super("Register size exceeded!");
// 	}
// }


// Path: quantum/src/test/java/com/ars/qubits/QRegisterTest.java
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.ars.quantum.exception.RegisterOverflowException;

package com.ars.qubits;




public class QRegisterTest {
	private QRegister			qRegister;
	private static final int	REGISTER_LENGTH	= 3;

	@Before
	public void setUp() throws Exception {

	}

	@After
	public void tearDown() throws Exception {
		qRegister = null;
	}

	@Test
	public void testSizeNoElementsWithoutInit() {
		qRegister = new QRegister(REGISTER_LENGTH);
		assertEquals(3, qRegister.size());
	}

	@Test
	public void testAddElementsWithoutInit() {
		qRegister = new QRegister(REGISTER_LENGTH);
		try {
			qRegister.add(new QubitOne());
		} catch (RegisterOverflowException e) {