@@ -0,0 +1,1619 @@
+package jButtonDecorator.decorator;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport javax.swing.*;%0Aimport javax.swing.border.BevelBorder;%0Aimport javax.swing.border.CompoundBorder;%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 CompoundBorderDecoratorTest %7B%0A%0A    private CompoundBorderDecorator compoundBorderDecorator;%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        compoundBorderDecorator = null;%0A    %7D%0A%0A    @Test%0A    public void testCreate() throws Exception %7B%0A        assertNotNull(%22Is null%22, compoundBorderDecorator);%0A        assertTrue(%22Not same%22, compoundBorderDecorator.getClass() == CompoundBorderDecorator.class);%0A    %7D%0A%0A    @Test%0A    public void testBorder() throws Exception %7B%0A        final int borderStyle = BevelBorder.LOWERED;%0A        final Color upper = Color.GREEN;%0A        final Color lower = Color.CYAN;%0A        final BevelBorder bevel = new BevelBorder(borderStyle, upper, lower);%0A%0A        compoundBorderDecorator.border(bevel);%0A%0A        assertEquals(button.getBorder().getClass(), CompoundBorder.class);%0A        assertEquals(((CompoundBorder)button.getBorder()).getInsideBorder(),bevel );%0A    %7D%0A%0A    private void createInstance() %7B%0A        button = new JButton();%0A        compoundBorderDecorator = CompoundBorderDecorator.create(button);%0A    %7D%0A%0A%0A%7D

add compoundBorder test