package net.ceos.project.poi.annotated.core;

import static junit.framework.Assert.assertEquals;

import java.util.Date;

import org.apache.poi.hssf.usermodel.HSSFCell;

import net.ceos.project.poi.annotated.annotation.XlsElement;

public class TestUtils {

	public static final String WORKING_DIR_GENERATED_I = "D:\\projects\\generated";
	public static final String WORKING_DIR_GENERATED_II = "D:\\projects\\generated\\";
	public static final String WORKING_DIR_MANUALLY = "D:\\projects\\manually\\";
	
	public static void validationString(String string,
			XlsElement xlsAnnotation, HSSFCell headerCell, HSSFCell contentCell) {
		assertEquals(xlsAnnotation.title(), headerCell.getStringCellValue());
		assertEquals(string, contentCell.getStringCellValue());
	}

	public static void validationDate(Date date, XlsElement xlsAnnotation,
			HSSFCell headerCell, HSSFCell contentCell) {
		assertEquals(xlsAnnotation.title(), headerCell.getStringCellValue());
		assertEquals(date, contentCell.getDateCellValue());
	}

	public static void validationNumeric(Integer integer,
			XlsElement xlsAnnotation, HSSFCell headerCell, HSSFCell contentCell) {
		assertEquals(xlsAnnotation.title(), headerCell.getStringCellValue());
		Double d = contentCell.getNumericCellValue();
		assertEquals(integer, Integer.valueOf(d.intValue()));
	}
}

@@ -302,25 +302,25 @@
 ERATED_I = %22
-D
+C
 :%5C%5Cprojects%5C
@@ -312,32 +312,39 @@
  %22C:%5C%5Cprojects%5C%5C
+tests%5C%5C
 generated%22;%0A%09pub
@@ -391,25 +391,25 @@
 RATED_II = %22
-D
+C
 :%5C%5Cprojects%5C
@@ -405,24 +405,31 @@
 %5C%5Cprojects%5C%5C
+tests%5C%5C
 generated%5C%5C%22
@@ -482,17 +482,17 @@
 ALLY = %22
-D
+C
 :%5C%5Cproje
@@ -496,16 +496,23 @@
 ojects%5C%5C
+tests%5C%5C
 manually

Update test path