package com.grayben.riskExtractor.htmlScorer;

import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;

import static org.junit.Assert.*;

/**
 * Created by beng on 28/11/2015.
 */
@Ignore
public class TagAndAttributeTest {

    @Before
    public void setUp() throws Exception {

    }

    @After
    public void tearDown() throws Exception {

    }
}
@@ -56,68 +56,224 @@
 rg.j
-unit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Ignore
+soup.nodes.Attribute;%0Aimport org.jsoup.parser.Tag;%0Aimport org.junit.*;%0Aimport org.junit.rules.ExpectedException;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner
 ;%0A%0Ai
@@ -353,14 +353,41 @@
 */%0A@
-Ignore
+RunWith(MockitoJUnitRunner.class)
 %0Apub
@@ -427,124 +427,1135 @@
     
-@Before%0A    public void setUp() throws Exception %7B%0A%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A
+TagAndAttribute tagAndAttribute;%0A%0A    @Mock%0A    Tag tagMock;%0A%0A    @Mock%0A    Attribute attributeMock;%0A%0A    @Rule%0A    public ExpectedException thrown = ExpectedException.none();%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        tagAndAttribute = new TagAndAttribute(tagMock, attributeMock);%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void test_Initialise_ThrowsIllegalArgumentException_WhenTagArgumentIsNull()%7B%0A        thrown.expect(IllegalArgumentException.class);%0A        tagAndAttribute = new TagAndAttribute(null, attributeMock);%0A    %7D%0A%0A    @Test%0A    public void test_Initialise_ThrowsIllegalArgumentException_WhenAttributeArgumentIsNull()%7B%0A        thrown.expect(IllegalArgumentException.class);%0A        tagAndAttribute = new TagAndAttribute(tagMock, null);%0A    %7D%0A%0A    @Test%0A    public void test_GetTag_IsNotNull_Always()%7B%0A        Tag tag = tagAndAttribute.getTag();%0A        assertNotNull(tag);%0A    %7D%0A%0A    @Test%0A    public void test_GetAttribute_IsNotNull_Always()%7B%0A        Attribute attribute = tagAndAttribute.getAttribute();%0A        assertNotNull(attribute);
 %0A   

Write tests