@@ -0,0 +1,1627 @@
+package org.jaexcel.framework.JAEX.annotation;%0A%0Aimport java.lang.annotation.Annotation;%0A%0Aimport org.jaexcel.framework.JAEX.bean.ObjectsBuilderTest;%0A%0Aimport junit.framework.Test;%0Aimport junit.framework.TestCase;%0Aimport junit.framework.TestSuite;%0A%0Apublic class XlsDecoratorTest extends TestCase %7B%0A%0A%09/**%0A%09 * Create the test case%0A%09 * %0A%09 * @param testName%0A%09 *            name of the test case%0A%09 */%0A%09public XlsDecoratorTest(String testName) %7B%0A%09%09super(testName);%0A%09%7D%0A%0A%09/**%0A%09 * @return the suite of tests being tested%0A%09 */%0A%09public static Test suite() %7B%0A%09%09return new TestSuite(XlsDecoratorTest.class);%0A%09%7D%0A%0A%09/**%0A%09 * Test default configuration.%0A%09 */%0A%09public void testDefaultConfiguration() %7B%0A%09%09Class%3CObjectsBuilderTest.ObjectWithDefaultConfig%3E o = ObjectsBuilderTest.ObjectWithDefaultConfig.class;%0A%0A%09%09// Process @XlsDecorator%0A%09%09if (o.isAnnotationPresent(XlsDecorator.class)) %7B%0A%0A%09%09%09Annotation annotation = o.getAnnotation(XlsDecorator.class);%0A%09%09%09XlsDecorator xlsDecorator = (XlsDecorator) annotation;%0A%0A%09%09%09// add here the annotations attributes%0A%09%09%09assertEquals(xlsDecorator.fontBold(), false);%0A%09%09%09assertEquals(xlsDecorator.fontItalic(), false);%0A%09%09%09assertEquals(xlsDecorator.alignment(), 0);%0A%09%09%09assertEquals(xlsDecorator.verticalAlignment(), 0);%0A%09%09%09assertEquals(xlsDecorator.border(), 0);%0A%09%09%09assertEquals(xlsDecorator.borderLeft(), 0);%0A%09%09%09assertEquals(xlsDecorator.borderRight(), 0);%0A%09%09%09assertEquals(xlsDecorator.borderTop(), 0);%0A%09%09%09assertEquals(xlsDecorator.borderBottom(), 0);%0A%09%09%09assertEquals(xlsDecorator.backgroundColor(), 0);%0A%09%09%09assertEquals(xlsDecorator.foregroundColor(), 0);%0A%09%09%09assertEquals(xlsDecorator.wrapText(), false);%0A%0A%09%09%7D%0A%09%7D%0A%7D%0A

Add test class to XlsDecorator