X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fmdsal-it-base%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmdsal%2Fit%2Fbase%2FAbstractMdsalTestBase.java;h=843cfced1fdc1f250bdd716f2d7b71c8549eaa74;hp=34728a99fbbb9c0a942950345caddcc406b9d1c4;hb=27b9d419798a8d4b673b13c57da6fe31a85e6422;hpb=bc99ff03ddcba2ceff83fd1ebba68731f39c864b diff --git a/opendaylight/md-sal/mdsal-it-base/src/main/java/org/opendaylight/controller/mdsal/it/base/AbstractMdsalTestBase.java b/opendaylight/md-sal/mdsal-it-base/src/main/java/org/opendaylight/controller/mdsal/it/base/AbstractMdsalTestBase.java index 34728a99fb..843cfced1f 100644 --- a/opendaylight/md-sal/mdsal-it-base/src/main/java/org/opendaylight/controller/mdsal/it/base/AbstractMdsalTestBase.java +++ b/opendaylight/md-sal/mdsal-it-base/src/main/java/org/opendaylight/controller/mdsal/it/base/AbstractMdsalTestBase.java @@ -1,10 +1,16 @@ +/* + * Copyright (c) 2015 Cisco Systems, 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.mdsal.it.base; import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.editConfigurationFilePut; import static org.ops4j.pax.exam.CoreOptions.composite; -import java.util.Calendar; - import javax.inject.Inject; import org.junit.Before; @@ -42,7 +48,7 @@ public abstract class AbstractMdsalTestBase extends AbstractConfigTestBase imple @Before public void setup() throws Exception { super.setup(); - Calendar start = Calendar.getInstance(); + long start = System.nanoTime(); ServiceReference serviceReference = context.getServiceReference(BindingAwareBroker.class); if(serviceReference == null) { throw new RuntimeException("BindingAwareBroker not found"); @@ -51,10 +57,10 @@ public abstract class AbstractMdsalTestBase extends AbstractConfigTestBase imple broker.registerProvider(this); for(int i=0;i