@@ -0,0 +1,2042 @@
+package jButtonDecorator.decorator;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport javax.swing.*;%0Aimport javax.swing.border.*;%0Aimport java.awt.*;%0A%0Aimport static junit.framework.Assert.assertEquals;%0Aimport static junit.framework.Assert.assertNotNull;%0Aimport static junit.framework.TestCase.assertTrue;%0A%0A/**%0A * Created by vicboma on 15/10/15.%0A */%0Apublic class SofBevelBorderDecoratorTest %7B%0A%0A    private SofBevelBorderDecorator sofBevelBorderDecorator;%0A    private JButton button;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        createInstance();%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A        sofBevelBorderDecorator = null;%0A    %7D%0A%0A    @Test%0A    public void testCreate() throws Exception %7B%0A        assertNotNull(%22Is null%22, sofBevelBorderDecorator);%0A        assertTrue(%22Not same%22, sofBevelBorderDecorator.getClass() == SofBevelBorderDecorator.class);%0A    %7D%0A%0A    @Test%0A    public void testBorder() throws Exception %7B%0A        final int borderStyle = SoftBevelBorder.LOWERED;%0A        final Color upper = Color.GREEN;%0A        final Color lower = Color.CYAN;%0A%0A        final SoftBevelBorder softBevelBorder = new SoftBevelBorder(borderStyle, upper, lower);%0A        sofBevelBorderDecorator.border(borderStyle, upper, lower);%0A%0A        final SoftBevelBorder border = (SoftBevelBorder)button.getBorder();%0A        assertEquals(border.getClass(), SoftBevelBorder.class);%0A        assertEquals(border.getBevelType(), softBevelBorder.getBevelType());%0A        assertEquals(border.getHighlightInnerColor(), softBevelBorder.getHighlightInnerColor());%0A        assertEquals(border.getHighlightOuterColor(), softBevelBorder.getHighlightOuterColor());%0A        assertEquals(border.getShadowInnerColor(), softBevelBorder.getShadowInnerColor());%0A        assertEquals(border.getShadowOuterColor(), softBevelBorder.getShadowOuterColor());%0A    %7D%0A%0A    private void createInstance() %7B%0A        button = new JButton();%0A        sofBevelBorderDecorator = SofBevelBorderDecorator.create(button);%0A    %7D%0A%0A%0A%7D

add SoftBevel test