// Path: e-paper-client-api/src/main/java/fr/romainmoreau/epaper/client/api/EPaperValidationException.java
// public class EPaperValidationException extends EPaperException {
// 	private static final long serialVersionUID = 1L;
// 
// 	public EPaperValidationException(String message) {
// 		super(message);
// 	}
// }
// 
// Path: e-paper-client-api/src/main/java/fr/romainmoreau/epaper/client/api/FontSize.java
// public enum FontSize {
// 	DOTS_32(32, 1), DOTS_48(48, 1), DOTS_64(64, 1);
// 
// 	private final int height;
// 
// 	private final int letterSpacing;
// 
// 	private FontSize(int height, int letterSpacing) {
// 		this.height = height;
// 		this.letterSpacing = letterSpacing;
// 	}
// 
// 	public int getHeight() {
// 		return height;
// 	}
// 
// 	public int getLetterSpacing() {
// 		return letterSpacing;
// 	}
// }


import org.junit.Assert;
import org.junit.Test;
import fr.romainmoreau.epaper.client.api.EPaperValidationException;
import fr.romainmoreau.epaper.client.api.FontSize;
package fr.romainmoreau.epaper.client.common;



public class LineTest {
	@Test(expected = EPaperValidationException.class)
	public void test1() throws EPaperValidationException {
		Line line = new Line(0, FontSize.DOTS_32);
		line.addWord("foo");
	}

	@Test(expected = EPaperValidationException.class)
	public void test2() throws EPaperValidationException {
		Line line = new Line(4, FontSize.DOTS_32);
		line.addWord("i");
	}

	@Test
	public void test3() throws EPaperValidationException {
		Line line = new Line(5, FontSize.DOTS_32);
		Assert.assertTrue(line.addWord("i"));
		Assert.assertEquals(5, line.getWidth());
		Assert.assertEquals("i", line.getText());
	}

	@Test
	public void test4() throws EPaperValidationException {
		Line line = new Line(6, FontSize.DOTS_32);
		Assert.assertTrue(line.addWord("i"));
		Assert.assertEquals(5, line.getWidth());
		Assert.assertEquals("i", line.getText());
	}

	@Test
// Path: e-paper-client-api/src/main/java/fr/romainmoreau/epaper/client/api/EPaperValidationException.java
// public class EPaperValidationException extends EPaperException {
// 	private static final long serialVersionUID = 1L;
// 
// 	public EPaperValidationException(String message) {
// 		super(message);
// 	}
// }
// 
// Path: e-paper-client-api/src/main/java/fr/romainmoreau/epaper/client/api/FontSize.java
// public enum FontSize {
// 	DOTS_32(32, 1), DOTS_48(48, 1), DOTS_64(64, 1);
// 
// 	private final int height;
// 
// 	private final int letterSpacing;
// 
// 	private FontSize(int height, int letterSpacing) {
// 		this.height = height;
// 		this.letterSpacing = letterSpacing;
// 	}
// 
// 	public int getHeight() {
// 		return height;
// 	}
// 
// 	public int getLetterSpacing() {
// 		return letterSpacing;
// 	}
// }


// Path: e-paper-client-common/src/test/java/fr/romainmoreau/epaper/client/common/LineTest.java
import org.junit.Assert;
import org.junit.Test;
import fr.romainmoreau.epaper.client.api.EPaperValidationException;
import fr.romainmoreau.epaper.client.api.FontSize;

package fr.romainmoreau.epaper.client.common;



public class LineTest {
	@Test(expected = EPaperValidationException.class)
	public void test1() throws EPaperValidationException {
		Line line = new Line(0, FontSize.DOTS_32);
		line.addWord("foo");
	}

	@Test(expected = EPaperValidationException.class)
	public void test2() throws EPaperValidationException {
		Line line = new Line(4, FontSize.DOTS_32);
		line.addWord("i");
	}

	@Test
	public void test3() throws EPaperValidationException {
		Line line = new Line(5, FontSize.DOTS_32);
		Assert.assertTrue(line.addWord("i"));
		Assert.assertEquals(5, line.getWidth());
		Assert.assertEquals("i", line.getText());
	}

	@Test
	public void test4() throws EPaperValidationException {
		Line line = new Line(6, FontSize.DOTS_32);
		Assert.assertTrue(line.addWord("i"));
		Assert.assertEquals(5, line.getWidth());
		Assert.assertEquals("i", line.getText());
	}

	@Test
	public void test5() throws EPaperValidationException {