// Path: src/main/java/uk/co/skyem/projects/emuZ80/util/buffer/AbstractByteBuffer.java
// public enum Endian {
// 	BIG, LITTLE, LITTLE_ALT
// }


import org.junit.Test;
import uk.co.skyem.projects.emuZ80.util.buffer.AbstractByteBuffer.Endian;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
package uk.co.skyem.projects.emuZ80.util.buffer;




public class ByteBufferTest {

	@Test
	public void testPutGetByte() throws Exception {
		System.out.println("Testing put BYTE");
		ByteBuffer bb = new ByteBuffer(42);
		bb.putByte(0, (byte) 0x43);
		assertThat(bb.getByte(0)).isEqualTo((byte) 0x43);
	}

	@Test
	public void testPutGetWord() throws Exception {

		System.out.println("Testing put WORD big endian");
		// BEST NAME 100/10 -IGN
// Path: src/main/java/uk/co/skyem/projects/emuZ80/util/buffer/AbstractByteBuffer.java
// public enum Endian {
// 	BIG, LITTLE, LITTLE_ALT
// }


// Path: src/test/java/uk/co/skyem/projects/emuZ80/util/buffer/ByteBufferTest.java
import org.junit.Test;
import uk.co.skyem.projects.emuZ80.util.buffer.AbstractByteBuffer.Endian;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

package uk.co.skyem.projects.emuZ80.util.buffer;




public class ByteBufferTest {

	@Test
	public void testPutGetByte() throws Exception {
		System.out.println("Testing put BYTE");
		ByteBuffer bb = new ByteBuffer(42);
		bb.putByte(0, (byte) 0x43);
		assertThat(bb.getByte(0)).isEqualTo((byte) 0x43);
	}

	@Test
	public void testPutGetWord() throws Exception {

		System.out.println("Testing put WORD big endian");
		// BEST NAME 100/10 -IGN
		ByteBuffer bbbig = new ByteBuffer(Endian.BIG, 42);