diff --git a/.circleci/config.yml b/.circleci/config.yml index 6bb04818a..1ffa6f90e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,6 +3,16 @@ orbs: codecov: codecov/codecov@1.0.2 jobs: + check_license_messages: + docker: + - image: circleci/openjdk:8-jdk-browsers + working_directory: ~/datahelix/ + steps: + - checkout + - run: + name: Check license headers exist on all source files + command: find . -type f -name '*.java' | xargs grep -L "Licensed under the Apache License" + check_commit_message: docker: - image: circleci/openjdk:8-jdk-browsers @@ -11,10 +21,10 @@ jobs: - checkout - run: name: Set commit script priviledges - command: chmod +x commit_check.sh + command: chmod +x commit-check.sh - run: name: Check commit messages - command: ./commit_check.sh + command: ./commit-check.sh build: docker: @@ -81,6 +91,11 @@ workflows: filters: branches: ignore: master + - check_license_messages: + filters: + branches: + ignore: master + release: jobs: - release: diff --git a/commit_check.sh b/commit-check.sh similarity index 100% rename from commit_check.sh rename to commit-check.sh diff --git a/common/src/main/java/com/scottlogic/deg/common/commands/Command.java b/common/src/main/java/com/scottlogic/deg/common/commands/Command.java index 3a659a1ee..5f7520fbb 100644 --- a/common/src/main/java/com/scottlogic/deg/common/commands/Command.java +++ b/common/src/main/java/com/scottlogic/deg/common/commands/Command.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.commands; import java.lang.reflect.Type; diff --git a/common/src/main/java/com/scottlogic/deg/common/commands/CommandBus.java b/common/src/main/java/com/scottlogic/deg/common/commands/CommandBus.java index 04c3e993b..1e583b60f 100644 --- a/common/src/main/java/com/scottlogic/deg/common/commands/CommandBus.java +++ b/common/src/main/java/com/scottlogic/deg/common/commands/CommandBus.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.commands; import org.apache.commons.lang3.tuple.ImmutablePair; diff --git a/common/src/main/java/com/scottlogic/deg/common/commands/CommandHandler.java b/common/src/main/java/com/scottlogic/deg/common/commands/CommandHandler.java index e86f61dbe..57c00668e 100644 --- a/common/src/main/java/com/scottlogic/deg/common/commands/CommandHandler.java +++ b/common/src/main/java/com/scottlogic/deg/common/commands/CommandHandler.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.commands; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/common/src/main/java/com/scottlogic/deg/common/commands/CommandResult.java b/common/src/main/java/com/scottlogic/deg/common/commands/CommandResult.java index 91f46c09d..bc8ce940a 100644 --- a/common/src/main/java/com/scottlogic/deg/common/commands/CommandResult.java +++ b/common/src/main/java/com/scottlogic/deg/common/commands/CommandResult.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.commands; import java.util.ArrayList; diff --git a/common/src/main/java/com/scottlogic/deg/common/profile/DateTimeGranularity.java b/common/src/main/java/com/scottlogic/deg/common/profile/DateTimeGranularity.java index f3c4b969b..95f7e65eb 100644 --- a/common/src/main/java/com/scottlogic/deg/common/profile/DateTimeGranularity.java +++ b/common/src/main/java/com/scottlogic/deg/common/profile/DateTimeGranularity.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.profile; import com.scottlogic.deg.common.ValidationException; diff --git a/common/src/main/java/com/scottlogic/deg/common/profile/FieldType.java b/common/src/main/java/com/scottlogic/deg/common/profile/FieldType.java index 6608ef76c..4432c8d62 100644 --- a/common/src/main/java/com/scottlogic/deg/common/profile/FieldType.java +++ b/common/src/main/java/com/scottlogic/deg/common/profile/FieldType.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.profile; public enum FieldType diff --git a/common/src/main/java/com/scottlogic/deg/common/profile/HelixDateTime.java b/common/src/main/java/com/scottlogic/deg/common/profile/HelixDateTime.java index de40abcd2..e91c37811 100644 --- a/common/src/main/java/com/scottlogic/deg/common/profile/HelixDateTime.java +++ b/common/src/main/java/com/scottlogic/deg/common/profile/HelixDateTime.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.profile; import com.scottlogic.deg.common.ValidationException; diff --git a/common/src/main/java/com/scottlogic/deg/common/profile/HelixNumber.java b/common/src/main/java/com/scottlogic/deg/common/profile/HelixNumber.java index dcabe916f..338706087 100644 --- a/common/src/main/java/com/scottlogic/deg/common/profile/HelixNumber.java +++ b/common/src/main/java/com/scottlogic/deg/common/profile/HelixNumber.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.profile; import com.scottlogic.deg.common.ValidationException; diff --git a/common/src/main/java/com/scottlogic/deg/common/profile/HelixStringLength.java b/common/src/main/java/com/scottlogic/deg/common/profile/HelixStringLength.java index 4c683b699..f1e37bbab 100644 --- a/common/src/main/java/com/scottlogic/deg/common/profile/HelixStringLength.java +++ b/common/src/main/java/com/scottlogic/deg/common/profile/HelixStringLength.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.profile; import com.scottlogic.deg.common.ValidationException; diff --git a/common/src/main/java/com/scottlogic/deg/common/profile/SpecificFieldType.java b/common/src/main/java/com/scottlogic/deg/common/profile/SpecificFieldType.java index 33ca38a35..52b85de40 100644 --- a/common/src/main/java/com/scottlogic/deg/common/profile/SpecificFieldType.java +++ b/common/src/main/java/com/scottlogic/deg/common/profile/SpecificFieldType.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.profile; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/common/src/main/java/com/scottlogic/deg/common/util/defaults/DateTimeDefaults.java b/common/src/main/java/com/scottlogic/deg/common/util/defaults/DateTimeDefaults.java index 908cc0037..33cea752e 100644 --- a/common/src/main/java/com/scottlogic/deg/common/util/defaults/DateTimeDefaults.java +++ b/common/src/main/java/com/scottlogic/deg/common/util/defaults/DateTimeDefaults.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.util.defaults; import com.scottlogic.deg.common.profile.Granularity; diff --git a/common/src/main/java/com/scottlogic/deg/common/util/defaults/LinearDefaults.java b/common/src/main/java/com/scottlogic/deg/common/util/defaults/LinearDefaults.java index 0029122c5..a2d90451e 100644 --- a/common/src/main/java/com/scottlogic/deg/common/util/defaults/LinearDefaults.java +++ b/common/src/main/java/com/scottlogic/deg/common/util/defaults/LinearDefaults.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.util.defaults; import com.scottlogic.deg.common.profile.Granularity; diff --git a/common/src/main/java/com/scottlogic/deg/common/util/defaults/NumericDefaults.java b/common/src/main/java/com/scottlogic/deg/common/util/defaults/NumericDefaults.java index 79f66b29b..365772fed 100644 --- a/common/src/main/java/com/scottlogic/deg/common/util/defaults/NumericDefaults.java +++ b/common/src/main/java/com/scottlogic/deg/common/util/defaults/NumericDefaults.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.util.defaults; import com.scottlogic.deg.common.profile.Granularity; diff --git a/common/src/main/java/com/scottlogic/deg/common/validators/ValidationResult.java b/common/src/main/java/com/scottlogic/deg/common/validators/ValidationResult.java index 2782921c3..7827369bf 100644 --- a/common/src/main/java/com/scottlogic/deg/common/validators/ValidationResult.java +++ b/common/src/main/java/com/scottlogic/deg/common/validators/ValidationResult.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.validators; import java.util.ArrayList; diff --git a/common/src/main/java/com/scottlogic/deg/common/validators/Validator.java b/common/src/main/java/com/scottlogic/deg/common/validators/Validator.java index e2c42672d..9720725a5 100644 --- a/common/src/main/java/com/scottlogic/deg/common/validators/Validator.java +++ b/common/src/main/java/com/scottlogic/deg/common/validators/Validator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.validators; public interface Validator diff --git a/common/src/test/java/com/scottlogic/deg/common/profile/SpecificFieldTypeTest.java b/common/src/test/java/com/scottlogic/deg/common/profile/SpecificFieldTypeTest.java index c46533914..5eadd7476 100644 --- a/common/src/test/java/com/scottlogic/deg/common/profile/SpecificFieldTypeTest.java +++ b/common/src/test/java/com/scottlogic/deg/common/profile/SpecificFieldTypeTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.common.profile; import org.junit.jupiter.api.Test; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/config/detail/VisualiserLevel.java b/generator/src/main/java/com/scottlogic/deg/generator/config/detail/VisualiserLevel.java index fe2b1916d..a611b21c2 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/config/detail/VisualiserLevel.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/config/detail/VisualiserLevel.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.config.detail; public enum VisualiserLevel { diff --git a/generator/src/main/java/com/scottlogic/deg/generator/decisiontree/ConstraintNodeBuilder.java b/generator/src/main/java/com/scottlogic/deg/generator/decisiontree/ConstraintNodeBuilder.java index d64c2a86b..b5f82fa35 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/decisiontree/ConstraintNodeBuilder.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/decisiontree/ConstraintNodeBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.decisiontree; import com.scottlogic.deg.generator.fieldspecs.relations.FieldSpecRelations; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/fieldspecs/GeneratorFieldSpec.java b/generator/src/main/java/com/scottlogic/deg/generator/fieldspecs/GeneratorFieldSpec.java index f85a83a91..3bbd59bf7 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/fieldspecs/GeneratorFieldSpec.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/fieldspecs/GeneratorFieldSpec.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.fieldspecs; import com.scottlogic.deg.generator.generation.fieldvaluesources.FieldValueSource; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/fieldspecs/relations/NotEqualToRelation.java b/generator/src/main/java/com/scottlogic/deg/generator/fieldspecs/relations/NotEqualToRelation.java index 8a16c1e32..cd5401510 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/fieldspecs/relations/NotEqualToRelation.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/fieldspecs/relations/NotEqualToRelation.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.fieldspecs.relations; import com.scottlogic.deg.common.profile.Field; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/generation/fieldvaluesources/NullOnlySource.java b/generator/src/main/java/com/scottlogic/deg/generator/generation/fieldvaluesources/NullOnlySource.java index b72d6406c..fb0607285 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/generation/fieldvaluesources/NullOnlySource.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/generation/fieldvaluesources/NullOnlySource.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.generation.fieldvaluesources; import com.scottlogic.deg.generator.utils.RandomNumberGenerator; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/DotVisualiser.java b/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/DotVisualiser.java index ca5c2487f..75ba3af5f 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/DotVisualiser.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/DotVisualiser.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.generation.visualiser; import com.scottlogic.deg.generator.decisiontree.DecisionTree; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/NoopVisualiser.java b/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/NoopVisualiser.java index 0abbbecad..a5830fe5e 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/NoopVisualiser.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/NoopVisualiser.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.generation.visualiser; import com.scottlogic.deg.generator.decisiontree.DecisionTree; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/Visualiser.java b/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/Visualiser.java index c4819d9fb..878373b5b 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/Visualiser.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/Visualiser.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.generation.visualiser; import com.scottlogic.deg.generator.decisiontree.DecisionTree; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserFactory.java b/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserFactory.java index 6671ac9ac..569b94707 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserFactory.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserFactory.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.generation.visualiser; import com.google.inject.Inject; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserWriterFactory.java b/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserWriterFactory.java index af796ac9f..a06c9ede4 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserWriterFactory.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserWriterFactory.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.generation.visualiser; import java.io.*; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/guice/OptionPickerProvider.java b/generator/src/main/java/com/scottlogic/deg/generator/guice/OptionPickerProvider.java index 24f25eafa..be331be2b 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/guice/OptionPickerProvider.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/guice/OptionPickerProvider.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.guice; import com.google.inject.Inject; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/inputs/validation/UniquenessValidator.java b/generator/src/main/java/com/scottlogic/deg/generator/inputs/validation/UniquenessValidator.java index 86e0dc229..0135ce199 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/inputs/validation/UniquenessValidator.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/inputs/validation/UniquenessValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.inputs.validation; import com.google.inject.Inject; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/BlacklistConstraint.java b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/BlacklistConstraint.java index 5b6e85b05..76781a565 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/BlacklistConstraint.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/BlacklistConstraint.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.profile.constraints.atomic; import com.scottlogic.deg.common.profile.Field; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/EqualToConstraint.java b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/EqualToConstraint.java index b57c23ed8..505b6e32f 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/EqualToConstraint.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/EqualToConstraint.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.profile.constraints.atomic; import com.scottlogic.deg.common.profile.Field; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotContainsRegexConstraint.java b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotContainsRegexConstraint.java index 012f0dde2..6428c7ed8 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotContainsRegexConstraint.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotContainsRegexConstraint.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.profile.constraints.atomic; import com.scottlogic.deg.common.profile.Field; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotEqualToConstraint.java b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotEqualToConstraint.java index 6010118d1..7cf63744a 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotEqualToConstraint.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotEqualToConstraint.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.profile.constraints.atomic; import com.scottlogic.deg.common.profile.Field; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotMatchesRegexConstraint.java b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotMatchesRegexConstraint.java index c6a27f7fa..323b1f461 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotMatchesRegexConstraint.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotMatchesRegexConstraint.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.profile.constraints.atomic; import com.scottlogic.deg.common.profile.Field; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotMatchesStandardConstraint.java b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotMatchesStandardConstraint.java index 9c38d1e96..1b2858a66 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotMatchesStandardConstraint.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotMatchesStandardConstraint.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.profile.constraints.atomic; import com.scottlogic.deg.common.profile.Field; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotNullConstraint.java b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotNullConstraint.java index 74ba1f392..b0f7359d6 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotNullConstraint.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotNullConstraint.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.profile.constraints.atomic; import com.scottlogic.deg.common.profile.Field; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotStringLengthConstraint.java b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotStringLengthConstraint.java index d2370c97d..2444215b2 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotStringLengthConstraint.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/profile/constraints/atomic/NotStringLengthConstraint.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.profile.constraints.atomic; import com.scottlogic.deg.common.profile.Field; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/restrictions/linear/LinearRestrictionsFactory.java b/generator/src/main/java/com/scottlogic/deg/generator/restrictions/linear/LinearRestrictionsFactory.java index 3dcb12eb9..8c55a2085 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/restrictions/linear/LinearRestrictionsFactory.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/restrictions/linear/LinearRestrictionsFactory.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.restrictions.linear; import com.scottlogic.deg.common.profile.Granularity; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/OptionPicker.java b/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/OptionPicker.java index d77920aa5..0cc60105f 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/OptionPicker.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/OptionPicker.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.walker.decisionbased; import com.scottlogic.deg.generator.decisiontree.ConstraintNode; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/RandomOptionPicker.java b/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/RandomOptionPicker.java index f9abb48ef..82030c3b9 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/RandomOptionPicker.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/RandomOptionPicker.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.walker.decisionbased; import com.scottlogic.deg.generator.decisiontree.ConstraintNode; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/RowSpecTreeSolver.java b/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/RowSpecTreeSolver.java index bc9c5d460..c1703cc79 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/RowSpecTreeSolver.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/RowSpecTreeSolver.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.walker.decisionbased; import com.google.inject.Inject; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/SequentialOptionPicker.java b/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/SequentialOptionPicker.java index 7ee374a58..b6b0a7037 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/SequentialOptionPicker.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/walker/decisionbased/SequentialOptionPicker.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.walker.decisionbased; import com.scottlogic.deg.generator.decisiontree.ConstraintNode; diff --git a/generator/src/main/java/com/scottlogic/deg/generator/walker/rowspec/RowSpecDecisionTreeWalker.java b/generator/src/main/java/com/scottlogic/deg/generator/walker/rowspec/RowSpecDecisionTreeWalker.java index cc2c1e273..89fbc32c9 100644 --- a/generator/src/main/java/com/scottlogic/deg/generator/walker/rowspec/RowSpecDecisionTreeWalker.java +++ b/generator/src/main/java/com/scottlogic/deg/generator/walker/rowspec/RowSpecDecisionTreeWalker.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.walker.rowspec; import com.google.inject.Inject; diff --git a/generator/src/test/java/com/scottlogic/deg/generator/config/detail/VisualiserLevelTests.java b/generator/src/test/java/com/scottlogic/deg/generator/config/detail/VisualiserLevelTests.java index 273e754e8..fc2bedae3 100644 --- a/generator/src/test/java/com/scottlogic/deg/generator/config/detail/VisualiserLevelTests.java +++ b/generator/src/test/java/com/scottlogic/deg/generator/config/detail/VisualiserLevelTests.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.config.detail; import org.junit.jupiter.api.Test; diff --git a/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/RowSpecMergerTest.java b/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/RowSpecMergerTest.java index ddb689bb1..f4a7ec8d8 100644 --- a/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/RowSpecMergerTest.java +++ b/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/RowSpecMergerTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.fieldspecs; import com.google.common.collect.ImmutableMap; diff --git a/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/EqualToDateRelationTest.java b/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/EqualToDateRelationTest.java index 4e92c61c3..f292cfe57 100644 --- a/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/EqualToDateRelationTest.java +++ b/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/EqualToDateRelationTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.fieldspecs.relations; import com.scottlogic.deg.common.profile.Field; diff --git a/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/FieldSpecRelationsTest.java b/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/FieldSpecRelationsTest.java index 4c95fb2e8..3ce4b7509 100644 --- a/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/FieldSpecRelationsTest.java +++ b/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/FieldSpecRelationsTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.fieldspecs.relations; import com.scottlogic.deg.common.profile.DateTimeGranularity; diff --git a/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/InMapIndexRelationTest.java b/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/InMapIndexRelationTest.java index 66ed3a9aa..624c6021f 100644 --- a/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/InMapIndexRelationTest.java +++ b/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/InMapIndexRelationTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.fieldspecs.relations; import com.scottlogic.deg.common.profile.Field; diff --git a/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/InMapRelationTest.java b/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/InMapRelationTest.java index 443831e26..9b3dae159 100644 --- a/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/InMapRelationTest.java +++ b/generator/src/test/java/com/scottlogic/deg/generator/fieldspecs/relations/InMapRelationTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.fieldspecs.relations; import com.scottlogic.deg.common.profile.Field; diff --git a/generator/src/test/java/com/scottlogic/deg/generator/generation/fieldvaluesources/LinearFieldValueSourceTest.java b/generator/src/test/java/com/scottlogic/deg/generator/generation/fieldvaluesources/LinearFieldValueSourceTest.java index 08f93a673..7e75c6cc6 100644 --- a/generator/src/test/java/com/scottlogic/deg/generator/generation/fieldvaluesources/LinearFieldValueSourceTest.java +++ b/generator/src/test/java/com/scottlogic/deg/generator/generation/fieldvaluesources/LinearFieldValueSourceTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.generation.fieldvaluesources; import com.scottlogic.deg.common.profile.NumericGranularity; diff --git a/generator/src/test/java/com/scottlogic/deg/generator/generation/grouped/FieldSpecGroupValueGeneratorTest.java b/generator/src/test/java/com/scottlogic/deg/generator/generation/grouped/FieldSpecGroupValueGeneratorTest.java index 86c5c7606..7f92811ca 100644 --- a/generator/src/test/java/com/scottlogic/deg/generator/generation/grouped/FieldSpecGroupValueGeneratorTest.java +++ b/generator/src/test/java/com/scottlogic/deg/generator/generation/grouped/FieldSpecGroupValueGeneratorTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.generation.grouped; import com.scottlogic.deg.common.profile.Field; diff --git a/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/DotVisualiserTests.java b/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/DotVisualiserTests.java index 3d4a523b0..25df6f615 100644 --- a/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/DotVisualiserTests.java +++ b/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/DotVisualiserTests.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.generation.visualiser; import com.scottlogic.deg.generator.decisiontree.DecisionTree; diff --git a/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/NoopVisualiserTests.java b/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/NoopVisualiserTests.java index fc926d8ce..a6de6547b 100644 --- a/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/NoopVisualiserTests.java +++ b/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/NoopVisualiserTests.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.generation.visualiser; import com.scottlogic.deg.generator.decisiontree.DecisionTree; diff --git a/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserFactoryTests.java b/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserFactoryTests.java index 3e0c16d2a..1a07e9f00 100644 --- a/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserFactoryTests.java +++ b/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserFactoryTests.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.generation.visualiser; import com.scottlogic.deg.generator.config.detail.VisualiserLevel; diff --git a/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserWriterFactoryTest.java b/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserWriterFactoryTest.java index cd825d6b3..32c18547c 100644 --- a/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserWriterFactoryTest.java +++ b/generator/src/test/java/com/scottlogic/deg/generator/generation/visualiser/VisualiserWriterFactoryTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.generation.visualiser; import org.junit.jupiter.api.Test; diff --git a/generator/src/test/java/com/scottlogic/deg/generator/walker/decisionbased/RowSpecTreeSolverTests.java b/generator/src/test/java/com/scottlogic/deg/generator/walker/decisionbased/RowSpecTreeSolverTests.java index c37e4f7f5..0fdf0123f 100644 --- a/generator/src/test/java/com/scottlogic/deg/generator/walker/decisionbased/RowSpecTreeSolverTests.java +++ b/generator/src/test/java/com/scottlogic/deg/generator/walker/decisionbased/RowSpecTreeSolverTests.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.generator.walker.decisionbased; import com.scottlogic.deg.common.profile.Field; diff --git a/header-update.sh b/header-update.sh new file mode 100644 index 000000000..aaa0f5138 --- /dev/null +++ b/header-update.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +files=`find . -type f -name '*.java' | xargs grep -L "Licensed under the Apache License"` + +for i in ${files}; do + cat header.txt ${i} > temp && mv temp ${i} +done diff --git a/header.txt b/header.txt new file mode 100644 index 000000000..36c3c8db3 --- /dev/null +++ b/header.txt @@ -0,0 +1,15 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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. + */ diff --git a/license-check.sh b/license-check.sh new file mode 100644 index 000000000..364d2742c --- /dev/null +++ b/license-check.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +files=`find . -type f -name '*.java' | xargs grep -L "Licensed under the Apache License"` +# echo {files} + +if [[ -z ${files} ]] +then + echo "No files missing headers." + exit 0 +else + echo "Consider running header-update.sh from the root to update these files automatically!" + echo "Some files are missing headers:" +fi + +for i in ${files}; do + echo ${i} +done + +exit 1 diff --git a/orchestrator/src/test/java/com/scottlogic/deg/orchestrator/cucumber/testframework/utils/CucumberFileReader.java b/orchestrator/src/test/java/com/scottlogic/deg/orchestrator/cucumber/testframework/utils/CucumberFileReader.java index a42c17d63..7ef1bf495 100644 --- a/orchestrator/src/test/java/com/scottlogic/deg/orchestrator/cucumber/testframework/utils/CucumberFileReader.java +++ b/orchestrator/src/test/java/com/scottlogic/deg/orchestrator/cucumber/testframework/utils/CucumberFileReader.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.orchestrator.cucumber.testframework.utils; import com.scottlogic.deg.generator.fieldspecs.whitelist.DistributedList; diff --git a/output/src/test/java/com/scottlogic/deg/output/writer/json/JsonOutputWriterFactoryTest.java b/output/src/test/java/com/scottlogic/deg/output/writer/json/JsonOutputWriterFactoryTest.java index b2b8e6df3..488b026ab 100644 --- a/output/src/test/java/com/scottlogic/deg/output/writer/json/JsonOutputWriterFactoryTest.java +++ b/output/src/test/java/com/scottlogic/deg/output/writer/json/JsonOutputWriterFactoryTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.output.writer.json; import com.scottlogic.deg.common.output.GeneratedObject; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/ProfileCommandBus.java b/profile/src/main/java/com/scottlogic/deg/profile/ProfileCommandBus.java index 205eb707e..ff679dd65 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/ProfileCommandBus.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/ProfileCommandBus.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile; import com.google.inject.Inject; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/common/ConstraintType.java b/profile/src/main/java/com/scottlogic/deg/profile/common/ConstraintType.java index 2f53d37a7..8ad1c190f 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/common/ConstraintType.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/common/ConstraintType.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile.common; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/common/ConstraintTypeJsonProperty.java b/profile/src/main/java/com/scottlogic/deg/profile/common/ConstraintTypeJsonProperty.java index 196182063..6e8fc8865 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/common/ConstraintTypeJsonProperty.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/common/ConstraintTypeJsonProperty.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile.common; public class ConstraintTypeJsonProperty { diff --git a/profile/src/main/java/com/scottlogic/deg/profile/reader/FileReader.java b/profile/src/main/java/com/scottlogic/deg/profile/reader/FileReader.java index e96992799..627de42cc 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/reader/FileReader.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/reader/FileReader.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile.reader; import com.google.inject.Inject; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/reader/commands/CreateConstraints.java b/profile/src/main/java/com/scottlogic/deg/profile/reader/commands/CreateConstraints.java index ea4b5bc67..198d7031b 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/reader/commands/CreateConstraints.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/reader/commands/CreateConstraints.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile.reader.commands; import com.scottlogic.deg.common.commands.Command; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/reader/commands/CreateFields.java b/profile/src/main/java/com/scottlogic/deg/profile/reader/commands/CreateFields.java index 0140741bf..2028bf35a 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/reader/commands/CreateFields.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/reader/commands/CreateFields.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile.reader.commands; import com.scottlogic.deg.common.commands.Command; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/reader/commands/CreateProfile.java b/profile/src/main/java/com/scottlogic/deg/profile/reader/commands/CreateProfile.java index 592cb90f9..4c8557513 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/reader/commands/CreateProfile.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/reader/commands/CreateProfile.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile.reader.commands; import com.scottlogic.deg.common.commands.Command; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/reader/handlers/CreateConstraintsHandler.java b/profile/src/main/java/com/scottlogic/deg/profile/reader/handlers/CreateConstraintsHandler.java index 3f8c2ea1d..2eea1ae0a 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/reader/handlers/CreateConstraintsHandler.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/reader/handlers/CreateConstraintsHandler.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile.reader.handlers; import com.scottlogic.deg.common.commands.CommandHandler; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/reader/handlers/CreateFieldsHandler.java b/profile/src/main/java/com/scottlogic/deg/profile/reader/handlers/CreateFieldsHandler.java index 18b286b84..912372534 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/reader/handlers/CreateFieldsHandler.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/reader/handlers/CreateFieldsHandler.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile.reader.handlers; import com.scottlogic.deg.common.commands.CommandHandler; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/reader/handlers/CreateProfileHandler.java b/profile/src/main/java/com/scottlogic/deg/profile/reader/handlers/CreateProfileHandler.java index 8fd87312d..f046f524e 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/reader/handlers/CreateProfileHandler.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/reader/handlers/CreateProfileHandler.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile.reader.handlers; import com.scottlogic.deg.common.commands.CommandBus; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/reader/services/constraints/atomic/AtomicConstraintFactory.java b/profile/src/main/java/com/scottlogic/deg/profile/reader/services/constraints/atomic/AtomicConstraintFactory.java index 6873ab1c7..b90c2fa13 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/reader/services/constraints/atomic/AtomicConstraintFactory.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/reader/services/constraints/atomic/AtomicConstraintFactory.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile.reader.services.constraints.atomic; import com.scottlogic.deg.common.profile.Field; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/reader/validators/CreateConstraintsValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/reader/validators/CreateConstraintsValidator.java index ec9d6eef6..7d17fd6c8 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/reader/validators/CreateConstraintsValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/reader/validators/CreateConstraintsValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile.reader.validators; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/reader/validators/CreateFieldsValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/reader/validators/CreateFieldsValidator.java index 62bd2c16d..b35482e01 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/reader/validators/CreateFieldsValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/reader/validators/CreateFieldsValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile.reader.validators; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/reader/validators/CreateProfileValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/reader/validators/CreateProfileValidator.java index 2c5c1e3ab..c90a762e3 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/reader/validators/CreateProfileValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/reader/validators/CreateProfileValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile.reader.validators; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/serialisation/ConstraintDeserializer.java b/profile/src/main/java/com/scottlogic/deg/profile/serialisation/ConstraintDeserializer.java index a79aa9e88..e21d05514 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/serialisation/ConstraintDeserializer.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/serialisation/ConstraintDeserializer.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile.serialisation; import com.fasterxml.jackson.core.JsonParser; diff --git a/profile/src/test/java/com/scottlogic/deg/profile/reader/file/CsvInputStreamReaderTest.java b/profile/src/test/java/com/scottlogic/deg/profile/reader/file/CsvInputStreamReaderTest.java index cff0a5882..7760edc27 100644 --- a/profile/src/test/java/com/scottlogic/deg/profile/reader/file/CsvInputStreamReaderTest.java +++ b/profile/src/test/java/com/scottlogic/deg/profile/reader/file/CsvInputStreamReaderTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed 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 com.scottlogic.deg.profile.reader.file; import com.scottlogic.deg.generator.fieldspecs.whitelist.DistributedList;