/*
 * Copyright (c) 2015 Hewlett Packard Enterprise Development LP.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */

package org.opendaylight.nic.listeners.impl;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;

import static org.junit.Assert.assertNotNull;

@PrepareForTest({LinkDeletedImpl.class})
@RunWith(PowerMockRunner.class)
/**
 * Created by yrineu on 12/01/16.
 */
public class LinkDeletedImplTest {

    private LinkDeletedImpl linkDeletedMock;

    @Before
    public void setUp() {
        linkDeletedMock = PowerMockito.spy(new LinkDeletedImpl());
    }

    @Test
    public void testTimestampNotNull() {
        assertNotNull(linkDeletedMock.getTimeStamp());
    }


}

@@ -411,41 +411,8 @@
 st;%0A
-import org.junit.runner.RunWith;%0A
 impo
@@ -458,247 +458,55 @@
 to;%0A
-import org.powermock.core.classloader.annotations.PrepareForTest;%0Aimport org.powermock.modules.junit4.PowerMockRunner;%0A%0Aimport static org.junit.Assert.assertNotNull;%0A%0A@PrepareForTest(%7BLinkDeletedImpl.class%7D)%0A@RunWith(PowerMockRunner.class)
+%0Aimport static org.junit.Assert.assertNotNull;%0A
 %0A/**
@@ -850,12 +850,10 @@
 ;%0A    %7D%0A
-%0A%0A
 %7D%0A

Increase intent-listeners coverage on LinkDeletedImpl.