incl. some automated clean-up actions which I make Eclipse do autom.
This is part of a set of changes that are required in order to be able
to enable Checkstyle enforcement for src/test/java as well globally, see
https://git.opendaylight.org/gerrit/#/c/40957/
Change-Id: I37d19d5826135006ff94608ce703d5cc054333fb
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
* 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
- *
- * Authors : Dave Tucker
*/
-
package org.opendaylight.ovsdb.lib.jsonrpc;
import static io.netty.buffer.Unpooled.copiedBuffer;
ch.writeInbound(copiedBuffer(testJson, CharsetUtil.UTF_16));
ch.finish();
}
- /* Disabling this test as the limit was changed
+ /* Disabling this test as the limit was changed
* from exception to a log warning...
/**
* Test whether decoder throws appropriate TooLongFrameException
* 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
- *
- * Authors : Aswin Raveendran
*/
package org.opendaylight.ovsdb.lib.jsonrpc;
* 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
- *
- * Authors : Aswin Raveendran
*/
package org.opendaylight.ovsdb.lib.jsonrpc;
* 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
- *
- * Authors : Aswin Raveendran
*/
package org.opendaylight.ovsdb.lib.jsonrpc;
import com.google.common.util.concurrent.ListenableFuture;
import java.lang.reflect.Method;
-
public class TestTokens {
public ListenableFuture<String> getString() {
* 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
- *
- * Authors : Dave Tucker
*/
-
package org.opendaylight.ovsdb.lib.notation;
import org.junit.Test;
}
- /* TODO: Incomplete compare test
- */
- @Test
- public void testCompare() throws Exception {
- Version a = Version.fromString("6.9.3");
- Version b = Version.fromString("7.1.0");
- }
}
* 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
- *
- * Authors : Ashwin Raveendran
*/
package org.opendaylight.ovsdb.lib.schema;
import java.io.IOException;
import java.io.InputStream;
-
public class OvsdbSchemaTest {
/**
* 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
- *
- * Authors : Ashwin Raveendran
*/
package org.opendaylight.ovsdb.integrationtest.ovsdbclient;
import org.ops4j.pax.exam.junit.PaxExam;
import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
import org.ops4j.pax.exam.spi.reactors.PerClass;
-import org.ops4j.pax.exam.spi.reactors.PerSuite;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public void testTransact() throws IOException, InterruptedException, ExecutionException {
assertNotNull(dbSchema);
TableSchema<GenericTableSchema> bridge = dbSchema.table("Bridge", GenericTableSchema.class);
- ColumnSchema<GenericTableSchema, String> name = bridge.column("name", String.class);
+ bridge.column("name", String.class);
createBridgeTransaction();
abortTransaction();
assertNotNull(dbSchema);
GenericTableSchema ovsTable = dbSchema.table("Open_vSwitch", GenericTableSchema.class);
- List<MonitorRequest> monitorRequests = Lists.newArrayList();
ColumnSchema<GenericTableSchema, UUID> _uuid = ovsTable.column("_uuid", UUID.class);
List<OperationResult> results = ovs.transactBuilder(dbSchema)
* 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
- *
- * Authors : Ashwin Raveendran, Madhu Venugopal
*/
-
package org.opendaylight.ovsdb.integrationtest.ovsdbclient;
import static org.junit.Assert.assertEquals;
import org.ops4j.pax.exam.junit.PaxExam;
import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
import org.ops4j.pax.exam.spi.reactors.PerClass;
-import org.ops4j.pax.exam.spi.reactors.PerSuite;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
* 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
- *
- * Authors : Madhu Venugopal
*/
-
package org.opendaylight.ovsdb.integrationtest.ovsdbclient;
import java.util.Map;
* 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
- *
- * Authors : Madhu Venugopal
*/
-
package org.opendaylight.ovsdb.integrationtest.ovsdbclient;
+
import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable;
import org.opendaylight.ovsdb.lib.schema.typed.TypedTable;
/*
- * Copyright (C) 2014 Red Hat, Inc. and others. All rights reserved.
+ * Copyright (C) 2014 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
- *
- * Authors : Sam Hague, Matt Oswalt
+ * 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.ovsdb.integrationtest.schema;
/*
- * Copyright (C) 2014 Red Hat, Inc. and others. All rights reserved.
+ * Copyright (C) 2014 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
- *
- * Authors : Sam Hague, Matt Oswalt
+ * 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.ovsdb.integrationtest.schema;
/*
- * Copyright (C) 2014 Red Hat, Inc. and others. All rights reserved.
+ * Copyright (C) 2014 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
- *
- * Authors : Sam Hague
+ * 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.ovsdb.schema.hardwarevtep;
/*
- * Copyright (C) 2014 Red Hat, Inc. and others. All rights reserved.
+ * Copyright (C) 2014 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
- *
- * Authors : Sam Hague
+ * 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.ovsdb.schema.openvswitch;
import org.junit.Test;
public class OpenVSwitchTest {
+
@Test
- public void setBridgesTest () {
+ public void setBridgesTest() {
assertTrue(true);
}
}
/*
-* Copyright (C) 2014 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
-*
-* Authors : Flavio Fernandes
-*/
+ * Copyright (C) 2014 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.ovsdb.utils.config;
import static org.junit.Assert.assertEquals;
/*
- * Copyright (C) 2015 Red Hat, Inc. and others. All rights reserved.
+ * Copyright (C) 2015 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
- *
- * Authors : Sam Hague
+ * 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.ovsdb.utils.servicehelper;
import org.springframework.osgi.mock.MockBundle;
/**
- * JUnit test for
- * {@link ServiceHelper}
+ * JUnit test for {@link ServiceHelper}.
*/
@RunWith(PowerMockRunner.class)
@PrepareForTest(FrameworkUtil.class)