@@ -0,0 +1,1953 @@
+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.EtchedBorder;%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 EtchedBorderDecoratorTest %7B%0A%0A    private EtchedBorderDecorator etchedBorderDecorator;%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        etchedBorderDecorator = null;%0A    %7D%0A%0A    @Test%0A    public void testCreate() throws Exception %7B%0A        assertNotNull(%22Is null%22, etchedBorderDecorator);%0A        assertTrue(%22Not same%22, etchedBorderDecorator.getClass() == EtchedBorderDecorator.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%0A        etchedBorderDecorator.border(borderStyle, upper, lower);%0A        final EtchedBorder etchedBorder = new EtchedBorder(borderStyle, upper, lower);%0A%0A        assertEquals(button.getBorder().getClass(), etchedBorder.getClass());%0A        assertEquals(((EtchedBorder)button.getBorder()).getEtchType(), etchedBorder.getEtchType());%0A        assertEquals(((EtchedBorder)button.getBorder()).getHighlightColor(), etchedBorder.getHighlightColor());%0A        assertEquals(((EtchedBorder)button.getBorder()).getShadowColor(), etchedBorder.getShadowColor());%0A        assertEquals((button.getBorder()).isBorderOpaque(), etchedBorder.isBorderOpaque());%0A%0A    %7D%0A%0A    private void createInstance() %7B%0A        button = new JButton();%0A        etchedBorderDecorator = EtchedBorderDecorator.create(button);%0A    %7D%0A%7D

add test etchedBorder