From d74edd8bb6380f399951ec51f4ce26868fe669a8 Mon Sep 17 00:00:00 2001 From: Aidan Skinner Date: Thu, 28 Aug 2008 19:26:51 +0000 Subject: Add ASL to everywhere, to everything. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@689937 13f79535-47bb-0310-9956-ffa450edef68 --- .../extras/exchanges/example/TestExchange.java | 21 ++ .../java/org/apache/qpid/nclient/JMSTestCase.java | 22 +- java/common/templating.py | 18 ++ java/etc/coding_standards.xml | 255 +++++++++++---------- .../org/apache/qpid/junit/concurrency/package.html | 35 ++- .../qpid/junit/extensions/listeners/package.html | 33 ++- .../org/apache/qpid/junit/extensions/package.html | 45 +++- .../apache/qpid/junit/extensions/util/package.html | 33 ++- .../org/apache/qpid/test/framework/package.html | 23 +- .../org/apache/qpid/test/unit/xa/FaultTest.java | 21 ++ java/test-provider.properties | 21 ++ .../org/apache/qpid/testkit/MessageFactory.java | 21 ++ 12 files changed, 398 insertions(+), 150 deletions(-) (limited to 'java') diff --git a/java/broker-plugins/src/main/java/org/apache/qpid/extras/exchanges/example/TestExchange.java b/java/broker-plugins/src/main/java/org/apache/qpid/extras/exchanges/example/TestExchange.java index 067125de56..e43bd2ddc0 100644 --- a/java/broker-plugins/src/main/java/org/apache/qpid/extras/exchanges/example/TestExchange.java +++ b/java/broker-plugins/src/main/java/org/apache/qpid/extras/exchanges/example/TestExchange.java @@ -1,4 +1,25 @@ package org.apache.qpid.extras.exchanges.example; +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + import java.util.List; import java.util.Map; diff --git a/java/client/src/main/java/org/apache/qpid/nclient/JMSTestCase.java b/java/client/src/main/java/org/apache/qpid/nclient/JMSTestCase.java index 4e1b9058e6..e19058881e 100644 --- a/java/client/src/main/java/org/apache/qpid/nclient/JMSTestCase.java +++ b/java/client/src/main/java/org/apache/qpid/nclient/JMSTestCase.java @@ -1,4 +1,24 @@ - package org.apache.qpid.nclient; +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +package org.apache.qpid.nclient; import java.util.Enumeration; diff --git a/java/common/templating.py b/java/common/templating.py index 832b7ecb9c..732e96fa60 100644 --- a/java/common/templating.py +++ b/java/common/templating.py @@ -1,3 +1,21 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# class Parser: diff --git a/java/etc/coding_standards.xml b/java/etc/coding_standards.xml index 00b1a9516a..fdb42c1b9c 100644 --- a/java/etc/coding_standards.xml +++ b/java/etc/coding_standards.xml @@ -1,117 +1,138 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/junit-toolkit/src/main/org/apache/qpid/junit/concurrency/package.html b/java/junit-toolkit/src/main/org/apache/qpid/junit/concurrency/package.html index 4264367690..904fd0fd05 100644 --- a/java/junit-toolkit/src/main/org/apache/qpid/junit/concurrency/package.html +++ b/java/junit-toolkit/src/main/org/apache/qpid/junit/concurrency/package.html @@ -1,7 +1,28 @@ - - -Contains code to assist in testing concurrency issues using coordinated threads to present code under test with -oportunities to expose concurrency bugs. Some example concurrency bugs that may be tested using these techniques are -race conditions, dead locks, live locks, dirty reads, phantom reads, non repeatable reads and so on. - - \ No newline at end of file + + + + +Contains code to assist in testing concurrency issues using coordinated threads to present code under test with +oportunities to expose concurrency bugs. Some example concurrency bugs that may be tested using these techniques are +race conditions, dead locks, live locks, dirty reads, phantom reads, non repeatable reads and so on. + + diff --git a/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/listeners/package.html b/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/listeners/package.html index 326d6e176e..15acc02ab1 100644 --- a/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/listeners/package.html +++ b/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/listeners/package.html @@ -1,6 +1,27 @@ - - -Listners for test statistics are defined in this package. At the moment there is only one listener which writes all test -statistics out to a CSV (comma seperated values) file which can be loaded by most spread sheets. - - \ No newline at end of file + + + + +Listners for test statistics are defined in this package. At the moment there is only one listener which writes all test +statistics out to a CSV (comma seperated values) file which can be loaded by most spread sheets. + + diff --git a/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/package.html b/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/package.html index 091dcce08e..4cab8d936a 100644 --- a/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/package.html +++ b/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/package.html @@ -1,12 +1,33 @@ - - -Basic JUnit is enahanced with test runners to run tests repeatedly, simultaneously in many threads and with increasing -test sizes for asymptotic performance measurements. There are features to measure the time and amount of memory that -tests use as well as to record the asymptotic test size parameters. There are some utilities to write these test -statistics to various file formats too and these can be found in the listeners package. - -

The main test runner class is TKTestRunner which can be called with command line parameters to specify how tests -should be run. - - - \ No newline at end of file + + + + +Basic JUnit is enahanced with test runners to run tests repeatedly, simultaneously in many threads and with increasing +test sizes for asymptotic performance measurements. There are features to measure the time and amount of memory that +tests use as well as to record the asymptotic test size parameters. There are some utilities to write these test +statistics to various file formats too and these can be found in the listeners package. + +

The main test runner class is TKTestRunner which can be called with command line parameters to specify how tests +should be run. + + + diff --git a/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/util/package.html b/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/util/package.html index cbf45fe295..f39b892e2d 100644 --- a/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/util/package.html +++ b/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/util/package.html @@ -1,6 +1,27 @@ - - -Provides some helper classes. ContextualProperties allows a hierarchy of properties to be used in properties file with -default overrides. SizeOf takes memeory measurements by stabilizing the garbage collector. - - \ No newline at end of file + + + + +Provides some helper classes. ContextualProperties allows a hierarchy of properties to be used in properties file with +default overrides. SizeOf takes memeory measurements by stabilizing the garbage collector. + + diff --git a/java/systests/src/main/java/org/apache/qpid/test/framework/package.html b/java/systests/src/main/java/org/apache/qpid/test/framework/package.html index 92fe40d529..ac4e30d312 100644 --- a/java/systests/src/main/java/org/apache/qpid/test/framework/package.html +++ b/java/systests/src/main/java/org/apache/qpid/test/framework/package.html @@ -1,3 +1,24 @@ + +

A framework for testing Qpid, built around a standard 'test circuit' design. The idea behind this framework is the @@ -19,4 +40,4 @@ code locally. Where the receiving end is distributed accross one or more machine test report gethered from all of the receivers. Test code will be written to the assertions making as few assumptions as possible about the exact test topology. - \ No newline at end of file + diff --git a/java/systests/src/main/java/org/apache/qpid/test/unit/xa/FaultTest.java b/java/systests/src/main/java/org/apache/qpid/test/unit/xa/FaultTest.java index 0adf39980b..1e5932b6db 100644 --- a/java/systests/src/main/java/org/apache/qpid/test/unit/xa/FaultTest.java +++ b/java/systests/src/main/java/org/apache/qpid/test/unit/xa/FaultTest.java @@ -1,4 +1,25 @@ package org.apache.qpid.test.unit.xa; +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/java/test-provider.properties b/java/test-provider.properties index 6babe6b6c8..351fa59edb 100644 --- a/java/test-provider.properties +++ b/java/test-provider.properties @@ -1,3 +1,24 @@ +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + connectionfactory.local = amqp://username:password@clientid/test?brokerlist='tcp://localhost:5672' connectionfactory.vm = amqp://username:password@clientid/test?brokerlist='vm://:1' diff --git a/java/testkit/src/main/java/org/apache/qpid/testkit/MessageFactory.java b/java/testkit/src/main/java/org/apache/qpid/testkit/MessageFactory.java index f2784ef499..8b7b7fa434 100644 --- a/java/testkit/src/main/java/org/apache/qpid/testkit/MessageFactory.java +++ b/java/testkit/src/main/java/org/apache/qpid/testkit/MessageFactory.java @@ -1,4 +1,25 @@ package org.apache.qpid.testkit; +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + import javax.jms.BytesMessage; import javax.jms.JMSException; -- cgit v1.2.1