Remove deprecated MD-SAL APIs
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / test / java / org / opendaylight / controller / md / sal / binding / test / tests / DataBrokerTestModuleTest.java
diff --git a/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/test/tests/DataBrokerTestModuleTest.java b/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/test/tests/DataBrokerTestModuleTest.java
deleted file mode 100644 (file)
index 1512d8e..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) 2016 Red Hat, Inc. and others. 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.controller.md.sal.binding.test.tests;
-
-import static com.google.common.truth.Truth.assertThat;
-
-import org.junit.Ignore;
-import org.junit.Test;
-import org.opendaylight.controller.md.sal.binding.test.DataBrokerTestModule;
-
-/**
- * Integration tests the DataBrokerTestModule.
- *
- * @author Michael Vorburger
- */
-@Deprecated
-public class DataBrokerTestModuleTest {
-
-    @Test
-    public void ensureDataBrokerTestModuleWorksWithoutException() {
-        assertThat(DataBrokerTestModule.dataBroker()).isNotNull();
-    }
-
-    @Test
-    @Ignore // This test is flaky on build server VMs (although fine locally)
-    public void slowYangLoadingShouldOnlyHappenOnceAndNotDelayEachDataBroker() {
-        // TODO Write a lil' Timer utility class to make this kind of timing test code more readable
-        long startAtMs = System.currentTimeMillis();
-        DataBrokerTestModule.dataBroker();
-        long firstDataBrokerAtMs = System.currentTimeMillis();
-        long firstDataBrokerDurationMs = firstDataBrokerAtMs - startAtMs;
-        DataBrokerTestModule.dataBroker();
-        long secondDataBrokerDurationMs = System.currentTimeMillis() - firstDataBrokerAtMs;
-        assertThat(Math.abs(secondDataBrokerDurationMs - firstDataBrokerDurationMs))
-                .isLessThan(firstDataBrokerDurationMs / 4);
-    }
-}