diff options
Diffstat (limited to 'framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache')
37 files changed, 2072 insertions, 0 deletions
diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ActivationFileTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ActivationFileTest.java new file mode 100644 index 00000000..f88da581 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ActivationFileTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code ActivationFile}. + * + * @author Benjamin Bentmann + */ +public class ActivationFileTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new ActivationFile().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new ActivationFile().equals( null ) ); + + new ActivationFile().equals( new ActivationFile() ); + } + + public void testEqualsIdentity() + { + ActivationFile thing = new ActivationFile(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new ActivationFile().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ActivationOSTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ActivationOSTest.java new file mode 100644 index 00000000..f0d30450 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ActivationOSTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code ActivationOS}. + * + * @author Benjamin Bentmann + */ +public class ActivationOSTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new ActivationOS().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new ActivationOS().equals( null ) ); + + new ActivationOS().equals( new ActivationOS() ); + } + + public void testEqualsIdentity() + { + ActivationOS thing = new ActivationOS(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new ActivationOS().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ActivationPropertyTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ActivationPropertyTest.java new file mode 100644 index 00000000..5f5e048a --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ActivationPropertyTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code ActivationProperty}. + * + * @author Benjamin Bentmann + */ +public class ActivationPropertyTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new ActivationProperty().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new ActivationProperty().equals( null ) ); + + new ActivationProperty().equals( new ActivationProperty() ); + } + + public void testEqualsIdentity() + { + ActivationProperty thing = new ActivationProperty(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new ActivationProperty().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ActivationTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ActivationTest.java new file mode 100644 index 00000000..f6d0f910 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ActivationTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Activation}. + * + * @author Benjamin Bentmann + */ +public class ActivationTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Activation().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Activation().equals( null ) ); + + new Activation().equals( new Activation() ); + } + + public void testEqualsIdentity() + { + Activation thing = new Activation(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Activation().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/BuildTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/BuildTest.java new file mode 100644 index 00000000..80a60d57 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/BuildTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Build}. + * + * @author Benjamin Bentmann + */ +public class BuildTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Build().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Build().equals( null ) ); + + new Build().equals( new Build() ); + } + + public void testEqualsIdentity() + { + Build thing = new Build(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Build().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/CiManagementTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/CiManagementTest.java new file mode 100644 index 00000000..7194c844 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/CiManagementTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code CiManagement}. + * + * @author Benjamin Bentmann + */ +public class CiManagementTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new CiManagement().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new CiManagement().equals( null ) ); + + new CiManagement().equals( new CiManagement() ); + } + + public void testEqualsIdentity() + { + CiManagement thing = new CiManagement(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new CiManagement().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ContributorTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ContributorTest.java new file mode 100644 index 00000000..491b99ae --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ContributorTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Contributor}. + * + * @author Benjamin Bentmann + */ +public class ContributorTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Contributor().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Contributor().equals( null ) ); + + new Contributor().equals( new Contributor() ); + } + + public void testEqualsIdentity() + { + Contributor thing = new Contributor(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Contributor().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/DependencyManagementTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/DependencyManagementTest.java new file mode 100644 index 00000000..7702c62f --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/DependencyManagementTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code DependencyManagement}. + * + * @author Benjamin Bentmann + */ +public class DependencyManagementTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new DependencyManagement().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new DependencyManagement().equals( null ) ); + + new DependencyManagement().equals( new DependencyManagement() ); + } + + public void testEqualsIdentity() + { + DependencyManagement thing = new DependencyManagement(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new DependencyManagement().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/DependencyTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/DependencyTest.java new file mode 100644 index 00000000..ec0a8336 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/DependencyTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Dependency}. + * + * @author Benjamin Bentmann + */ +public class DependencyTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Dependency().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Dependency().equals( null ) ); + + new Dependency().equals( new Dependency() ); + } + + public void testEqualsIdentity() + { + Dependency thing = new Dependency(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Dependency().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/DeploymentRepositoryTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/DeploymentRepositoryTest.java new file mode 100644 index 00000000..169ec650 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/DeploymentRepositoryTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code DeploymentRepository}. + * + * @author Benjamin Bentmann + */ +public class DeploymentRepositoryTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new DeploymentRepository().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new DeploymentRepository().equals( null ) ); + + new DeploymentRepository().equals( new DeploymentRepository() ); + } + + public void testEqualsIdentity() + { + DeploymentRepository thing = new DeploymentRepository(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new DeploymentRepository().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/DeveloperTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/DeveloperTest.java new file mode 100644 index 00000000..c0dfe56d --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/DeveloperTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Developer}. + * + * @author Benjamin Bentmann + */ +public class DeveloperTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Developer().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Developer().equals( null ) ); + + new Developer().equals( new Developer() ); + } + + public void testEqualsIdentity() + { + Developer thing = new Developer(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Developer().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/DistributionManagementTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/DistributionManagementTest.java new file mode 100644 index 00000000..0314d61b --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/DistributionManagementTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code DistributionManagement}. + * + * @author Benjamin Bentmann + */ +public class DistributionManagementTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new DistributionManagement().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new DistributionManagement().equals( null ) ); + + new DistributionManagement().equals( new DistributionManagement() ); + } + + public void testEqualsIdentity() + { + DistributionManagement thing = new DistributionManagement(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new DistributionManagement().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ExclusionTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ExclusionTest.java new file mode 100644 index 00000000..6febaceb --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ExclusionTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Exclusion}. + * + * @author Benjamin Bentmann + */ +public class ExclusionTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Exclusion().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Exclusion().equals( null ) ); + + new Exclusion().equals( new Exclusion() ); + } + + public void testEqualsIdentity() + { + Exclusion thing = new Exclusion(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Exclusion().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ExtensionTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ExtensionTest.java new file mode 100644 index 00000000..4b8cd8a1 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ExtensionTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Extension}. + * + * @author Benjamin Bentmann + */ +public class ExtensionTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Extension().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Extension().equals( null ) ); + + new Extension().equals( new Extension() ); + } + + public void testEqualsIdentity() + { + Extension thing = new Extension(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Extension().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/IssueManagementTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/IssueManagementTest.java new file mode 100644 index 00000000..5e50c157 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/IssueManagementTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code IssueManagement}. + * + * @author Benjamin Bentmann + */ +public class IssueManagementTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new IssueManagement().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new IssueManagement().equals( null ) ); + + new IssueManagement().equals( new IssueManagement() ); + } + + public void testEqualsIdentity() + { + IssueManagement thing = new IssueManagement(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new IssueManagement().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/LicenseTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/LicenseTest.java new file mode 100644 index 00000000..179921b2 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/LicenseTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code License}. + * + * @author Benjamin Bentmann + */ +public class LicenseTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new License().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new License().equals( null ) ); + + new License().equals( new License() ); + } + + public void testEqualsIdentity() + { + License thing = new License(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new License().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/MailingListTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/MailingListTest.java new file mode 100644 index 00000000..61296952 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/MailingListTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code MailingList}. + * + * @author Benjamin Bentmann + */ +public class MailingListTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new MailingList().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new MailingList().equals( null ) ); + + new MailingList().equals( new MailingList() ); + } + + public void testEqualsIdentity() + { + MailingList thing = new MailingList(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new MailingList().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ModelTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ModelTest.java new file mode 100644 index 00000000..c9ec4da9 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ModelTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Model}. + * + * @author Benjamin Bentmann + */ +public class ModelTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Model().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Model().equals( null ) ); + + new Model().equals( new Model() ); + } + + public void testEqualsIdentity() + { + Model thing = new Model(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Model().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/NotifierTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/NotifierTest.java new file mode 100644 index 00000000..4e5d0685 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/NotifierTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Notifier}. + * + * @author Benjamin Bentmann + */ +public class NotifierTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Notifier().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Notifier().equals( null ) ); + + new Notifier().equals( new Notifier() ); + } + + public void testEqualsIdentity() + { + Notifier thing = new Notifier(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Notifier().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/OrganizationTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/OrganizationTest.java new file mode 100644 index 00000000..48abe77e --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/OrganizationTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Organization}. + * + * @author Benjamin Bentmann + */ +public class OrganizationTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Organization().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Organization().equals( null ) ); + + new Organization().equals( new Organization() ); + } + + public void testEqualsIdentity() + { + Organization thing = new Organization(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Organization().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ParentTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ParentTest.java new file mode 100644 index 00000000..78d45672 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ParentTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Parent}. + * + * @author Benjamin Bentmann + */ +public class ParentTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Parent().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Parent().equals( null ) ); + + new Parent().equals( new Parent() ); + } + + public void testEqualsIdentity() + { + Parent thing = new Parent(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Parent().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PluginConfigurationTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PluginConfigurationTest.java new file mode 100644 index 00000000..cbb123d5 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PluginConfigurationTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code PluginConfiguration}. + * + * @author Benjamin Bentmann + */ +public class PluginConfigurationTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new PluginConfiguration().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new PluginConfiguration().equals( null ) ); + + new PluginConfiguration().equals( new PluginConfiguration() ); + } + + public void testEqualsIdentity() + { + PluginConfiguration thing = new PluginConfiguration(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new PluginConfiguration().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PluginContainerTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PluginContainerTest.java new file mode 100644 index 00000000..878298cf --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PluginContainerTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code PluginContainer}. + * + * @author Benjamin Bentmann + */ +public class PluginContainerTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new PluginContainer().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new PluginContainer().equals( null ) ); + + new PluginContainer().equals( new PluginContainer() ); + } + + public void testEqualsIdentity() + { + PluginContainer thing = new PluginContainer(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new PluginContainer().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PluginExecutionTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PluginExecutionTest.java new file mode 100644 index 00000000..e8fff512 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PluginExecutionTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code PluginExecution}. + * + * @author Benjamin Bentmann + */ +public class PluginExecutionTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new PluginExecution().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new PluginExecution().equals( null ) ); + + new PluginExecution().equals( new PluginExecution() ); + } + + public void testEqualsIdentity() + { + PluginExecution thing = new PluginExecution(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new PluginExecution().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PluginManagementTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PluginManagementTest.java new file mode 100644 index 00000000..571399fe --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PluginManagementTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code PluginManagement}. + * + * @author Benjamin Bentmann + */ +public class PluginManagementTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new PluginManagement().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new PluginManagement().equals( null ) ); + + new PluginManagement().equals( new PluginManagement() ); + } + + public void testEqualsIdentity() + { + PluginManagement thing = new PluginManagement(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new PluginManagement().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PluginTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PluginTest.java new file mode 100644 index 00000000..582145e0 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PluginTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Plugin}. + * + * @author Benjamin Bentmann + */ +public class PluginTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Plugin().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Plugin().equals( null ) ); + + new Plugin().equals( new Plugin() ); + } + + public void testEqualsIdentity() + { + Plugin thing = new Plugin(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Plugin().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PrerequisitesTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PrerequisitesTest.java new file mode 100644 index 00000000..727f2c3f --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/PrerequisitesTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Prerequisites}. + * + * @author Benjamin Bentmann + */ +public class PrerequisitesTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Prerequisites().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Prerequisites().equals( null ) ); + + new Prerequisites().equals( new Prerequisites() ); + } + + public void testEqualsIdentity() + { + Prerequisites thing = new Prerequisites(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Prerequisites().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ProfileTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ProfileTest.java new file mode 100644 index 00000000..512e2a88 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ProfileTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Profile}. + * + * @author Benjamin Bentmann + */ +public class ProfileTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Profile().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Profile().equals( null ) ); + + new Profile().equals( new Profile() ); + } + + public void testEqualsIdentity() + { + Profile thing = new Profile(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Profile().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/RelocationTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/RelocationTest.java new file mode 100644 index 00000000..265304d8 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/RelocationTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Relocation}. + * + * @author Benjamin Bentmann + */ +public class RelocationTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Relocation().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Relocation().equals( null ) ); + + new Relocation().equals( new Relocation() ); + } + + public void testEqualsIdentity() + { + Relocation thing = new Relocation(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Relocation().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ReportPluginTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ReportPluginTest.java new file mode 100644 index 00000000..d10cb791 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ReportPluginTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code ReportPlugin}. + * + * @author Benjamin Bentmann + */ +public class ReportPluginTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new ReportPlugin().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new ReportPlugin().equals( null ) ); + + new ReportPlugin().equals( new ReportPlugin() ); + } + + public void testEqualsIdentity() + { + ReportPlugin thing = new ReportPlugin(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new ReportPlugin().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ReportSetTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ReportSetTest.java new file mode 100644 index 00000000..2f514153 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ReportSetTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code ReportSet}. + * + * @author Benjamin Bentmann + */ +public class ReportSetTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new ReportSet().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new ReportSet().equals( null ) ); + + new ReportSet().equals( new ReportSet() ); + } + + public void testEqualsIdentity() + { + ReportSet thing = new ReportSet(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new ReportSet().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ReportingTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ReportingTest.java new file mode 100644 index 00000000..dbc0fa22 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ReportingTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Reporting}. + * + * @author Benjamin Bentmann + */ +public class ReportingTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Reporting().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Reporting().equals( null ) ); + + new Reporting().equals( new Reporting() ); + } + + public void testEqualsIdentity() + { + Reporting thing = new Reporting(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Reporting().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/RepositoryPolicyTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/RepositoryPolicyTest.java new file mode 100644 index 00000000..3ae34350 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/RepositoryPolicyTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code RepositoryPolicy}. + * + * @author Benjamin Bentmann + */ +public class RepositoryPolicyTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new RepositoryPolicy().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new RepositoryPolicy().equals( null ) ); + + new RepositoryPolicy().equals( new RepositoryPolicy() ); + } + + public void testEqualsIdentity() + { + RepositoryPolicy thing = new RepositoryPolicy(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new RepositoryPolicy().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/RepositoryTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/RepositoryTest.java new file mode 100644 index 00000000..b68b70a1 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/RepositoryTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Repository}. + * + * @author Benjamin Bentmann + */ +public class RepositoryTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Repository().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Repository().equals( null ) ); + + new Repository().equals( new Repository() ); + } + + public void testEqualsIdentity() + { + Repository thing = new Repository(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Repository().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ResourceTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ResourceTest.java new file mode 100644 index 00000000..fa40ab43 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ResourceTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Resource}. + * + * @author Benjamin Bentmann + */ +public class ResourceTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Resource().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Resource().equals( null ) ); + + new Resource().equals( new Resource() ); + } + + public void testEqualsIdentity() + { + Resource thing = new Resource(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Resource().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ScmTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ScmTest.java new file mode 100644 index 00000000..4d769931 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/ScmTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Scm}. + * + * @author Benjamin Bentmann + */ +public class ScmTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Scm().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Scm().equals( null ) ); + + new Scm().equals( new Scm() ); + } + + public void testEqualsIdentity() + { + Scm thing = new Scm(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Scm().toString() ); + } + +} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/SiteTest.java b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/SiteTest.java new file mode 100644 index 00000000..84896bb4 --- /dev/null +++ b/framework/src/maven/apache-maven-3.3.3/maven-model/src/test/java/org/apache/maven/model/SiteTest.java @@ -0,0 +1,56 @@ +package org.apache.maven.model; + +/* + * 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 junit.framework.TestCase; + +/** + * Tests {@code Site}. + * + * @author Benjamin Bentmann + */ +public class SiteTest + extends TestCase +{ + + public void testHashCodeNullSafe() + { + new Site().hashCode(); + } + + public void testEqualsNullSafe() + { + assertFalse( new Site().equals( null ) ); + + new Site().equals( new Site() ); + } + + public void testEqualsIdentity() + { + Site thing = new Site(); + assertTrue( thing.equals( thing ) ); + } + + public void testToStringNullSafe() + { + assertNotNull( new Site().toString() ); + } + +} |