// 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 java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
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 LinesTest {
	@Test(expected = EPaperValidationException.class)
	public void validateAdvancedTextTest1() throws EPaperValidationException {
		Lines.validateAdvancedText("é");
	}

	@Test
	public void validateAdvancedTextTest2() throws EPaperValidationException {
		String validCharacters = getValidCharacters();
		Assert.assertEquals(97, validCharacters.length());
		Lines.validateAdvancedText(validCharacters);
	}

	@Test(expected = EPaperValidationException.class)
	public void validateAdvancedTextTest3() throws EPaperValidationException {
		String text = getValidCharacters() + "é";
		Assert.assertEquals(98, text.length());
		Lines.validateAdvancedText(text);
	}

	@Test(expected = EPaperValidationException.class)
	public void validateAdvancedTextTest4() throws EPaperValidationException {
		String text = getValidCharacters() + "\r";
		Assert.assertEquals(98, text.length());
		Lines.validateAdvancedText(text);
	}

	@Test(expected = EPaperValidationException.class)
	public void getMaxLinesTest1() throws EPaperValidationException {
// 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/LinesTest.java
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
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 LinesTest {
	@Test(expected = EPaperValidationException.class)
	public void validateAdvancedTextTest1() throws EPaperValidationException {
		Lines.validateAdvancedText("é");
	}

	@Test
	public void validateAdvancedTextTest2() throws EPaperValidationException {
		String validCharacters = getValidCharacters();
		Assert.assertEquals(97, validCharacters.length());
		Lines.validateAdvancedText(validCharacters);
	}

	@Test(expected = EPaperValidationException.class)
	public void validateAdvancedTextTest3() throws EPaperValidationException {
		String text = getValidCharacters() + "é";
		Assert.assertEquals(98, text.length());
		Lines.validateAdvancedText(text);
	}

	@Test(expected = EPaperValidationException.class)
	public void validateAdvancedTextTest4() throws EPaperValidationException {
		String text = getValidCharacters() + "\r";
		Assert.assertEquals(98, text.length());
		Lines.validateAdvancedText(text);
	}

	@Test(expected = EPaperValidationException.class)
	public void getMaxLinesTest1() throws EPaperValidationException {
		Lines.getMaxLines(31, FontSize.DOTS_32, 1);