Repository: incubator-freemarker-online-tester Updated Branches: refs/heads/master fc99d2b4f -> 9e169f478
Added the license headers for all the source files Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/commit/521edc53 Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/tree/521edc53 Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/diff/521edc53 Branch: refs/heads/master Commit: 521edc53bdfc56a85297cd952b8cf48ce823319b Parents: fc99d2b Author: Pradeep Murugesan <[email protected]> Authored: Wed Apr 5 22:01:45 2017 +0200 Committer: Pradeep Murugesan <[email protected]> Committed: Wed Apr 5 22:01:45 2017 +0200 ---------------------------------------------------------------------- .gitignore | 24 +++++++++++++ LICENSE | 11 ++++++ README.md | 21 ++++++++++++ build.gradle | 19 +++++++++++ dependencies.gradle | 19 +++++++++++ .../dropwizard/ApplicationStartup.java | 30 +++++++++------- .../healthchecks/MyProjectHealthCheck.java | 35 +++++++++---------- .../com/kenshoo/freemarker/model/ErrorCode.java | 29 ++++++++-------- .../kenshoo/freemarker/model/ErrorResponse.java | 29 ++++++++-------- .../freemarker/model/ExecuteRequest.java | 31 +++++++++-------- .../freemarker/model/ExecuteResourceField.java | 29 ++++++++-------- .../model/ExecuteResourceProblem.java | 25 ++++++++------ .../freemarker/model/ExecuteResponse.java | 29 ++++++++-------- .../freemarker/model/SelectionOption.java | 25 ++++++++------ .../FreeMarkerOnlineExecuteResource.java | 29 ++++++++-------- .../resources/FreeMarkerOnlineResource.java | 30 +++++++++------- .../services/AllowedSettingValuesMaps.java | 25 ++++++++------ .../freemarker/services/FreeMarkerService.java | 36 +++++++++----------- .../services/FreeMarkerServiceException.java | 30 +++++++++------- .../services/FreeMarkerServiceResponse.java | 36 +++++++++----------- .../freemarker/util/DataModelParser.java | 30 +++++++++------- .../util/DataModelParsingException.java | 30 +++++++++------- .../kenshoo/freemarker/util/ExceptionUtils.java | 30 +++++++++------- .../util/LengthLimitExceededException.java | 30 +++++++++------- .../freemarker/util/LengthLimitedWriter.java | 30 +++++++++------- .../freemarker/view/FreeMarkerOnlineView.java | 30 +++++++++------- .../core/FreeMarkerInternalsAccessor.java | 30 +++++++++------- src/main/resources/assets/css/main.css | 19 +++++++++++ src/main/resources/assets/js/script.js | 28 +++++++-------- src/main/resources/freemarker-online.yml | 17 +++++++++ src/main/resources/spring/bootstrap-context.xml | 19 +++++++++++ src/main/resources/view/freemarker-online.ftl | 20 +++++++++++ src/main/resources/view/utils.ftl | 20 +++++++++++ .../platform/DropWizardServiceTest.java | 7 ++-- .../platform/YamlPropertiesPersister.java | 30 +++++++++------- .../FreeMarkerOnlineExecuteResourceTest.java | 28 +++++++-------- .../resources/FreeMarkerOnlineResourceTest.java | 30 +++++++++------- .../FreeMarkerServiceResponseBuilderTest.java | 30 +++++++++------- .../services/FreeMarkerServiceTest.java | 30 +++++++++------- .../freemarker/util/DataModelParserTest.java | 30 +++++++++------- .../util/LengthLimitedWriterTest.java | 30 +++++++++------- .../view/FreeMarkerOnlineViewTest.java | 30 +++++++++------- src/test/resources/spring/test-context.xml | 19 +++++++++++ 43 files changed, 713 insertions(+), 426 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/.gitignore ---------------------------------------------------------------------- diff --git a/.gitignore b/.gitignore index fa13c03..01bde3f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,28 @@ +# 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. + bin/ /target/ /.settings/ /.project +.gradle/ +.java-version +build/ +freemarker-online.iml +freemarker-online.ipr +freemarker-online.iws + http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/LICENSE ---------------------------------------------------------------------- diff --git a/LICENSE b/LICENSE index d645695..f7089da 100644 --- a/LICENSE +++ b/LICENSE @@ -200,3 +200,14 @@ 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. + + ========================================================================= + + The Apache FreeMarker Online Tester (incubating) source code contains the + following files, which were created at the Apache FreeMarker Online Tester + (incubating) project, and hence are covered by the same license as the + other source files of it: + + src/main/resources/banner.txt + + ========================================================================= \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index c33aea5..38e5992 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,24 @@ +``` +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +``` + freemarker-online ==================== http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle index 890f3c2..66ee5fd 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,22 @@ +/* + * 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. + */ + group = 'com.kenshoo.freemarker' project.projectName = "freemarker-online" def BUILD_NUMBER = project.hasProperty('BUILD_NUMBER') ? "$BUILD_NUMBER" : 'undef' http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/dependencies.gradle ---------------------------------------------------------------------- diff --git a/dependencies.gradle b/dependencies.gradle index fc4bc9c..80ff8ce 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -1,3 +1,22 @@ +/* + * 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. + */ + project.ext.set("libraries", "") ext.dw_version = "0.6.2"; ext.spring_version = "3.2.2.RELEASE"; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/dropwizard/ApplicationStartup.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/dropwizard/ApplicationStartup.java b/src/main/java/com/kenshoo/freemarker/dropwizard/ApplicationStartup.java index 1808ce2..39c0d47 100644 --- a/src/main/java/com/kenshoo/freemarker/dropwizard/ApplicationStartup.java +++ b/src/main/java/com/kenshoo/freemarker/dropwizard/ApplicationStartup.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.dropwizard; import com.berico.fallwizard.SpringConfiguration; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/healthchecks/MyProjectHealthCheck.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/healthchecks/MyProjectHealthCheck.java b/src/main/java/com/kenshoo/freemarker/healthchecks/MyProjectHealthCheck.java index d5b35ba..6f353dd 100644 --- a/src/main/java/com/kenshoo/freemarker/healthchecks/MyProjectHealthCheck.java +++ b/src/main/java/com/kenshoo/freemarker/healthchecks/MyProjectHealthCheck.java @@ -1,28 +1,27 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.healthchecks; import com.yammer.metrics.core.HealthCheck; import org.springframework.stereotype.Component; -/** - * Created by IntelliJ IDEA. - * User: tzachz - * Date: 5/23/13 - */ @Component public class MyProjectHealthCheck extends HealthCheck { http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/model/ErrorCode.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/model/ErrorCode.java b/src/main/java/com/kenshoo/freemarker/model/ErrorCode.java index 1e7f335..d26566c 100644 --- a/src/main/java/com/kenshoo/freemarker/model/ErrorCode.java +++ b/src/main/java/com/kenshoo/freemarker/model/ErrorCode.java @@ -1,23 +1,24 @@ /* - * Copyright 2014 Kenshoo.com + * 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 * - * 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 * - * 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. + * 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.kenshoo.freemarker.model; -/** - * Created by Pradeep on 8/30/2015. - */ public enum ErrorCode { FREEMARKER_SERVICE_TIMEOUT http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/model/ErrorResponse.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/model/ErrorResponse.java b/src/main/java/com/kenshoo/freemarker/model/ErrorResponse.java index 063779a..5af5314 100644 --- a/src/main/java/com/kenshoo/freemarker/model/ErrorResponse.java +++ b/src/main/java/com/kenshoo/freemarker/model/ErrorResponse.java @@ -1,23 +1,24 @@ /* - * Copyright 2014 Kenshoo.com + * 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 * - * 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 * - * 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. + * 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.kenshoo.freemarker.model; -/** - * Created by Pmuruge on 8/30/2015. - */ public class ErrorResponse { private ErrorCode errorCode; private String errorDescription; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/model/ExecuteRequest.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/model/ExecuteRequest.java b/src/main/java/com/kenshoo/freemarker/model/ExecuteRequest.java index b3c2163..5797116 100644 --- a/src/main/java/com/kenshoo/freemarker/model/ExecuteRequest.java +++ b/src/main/java/com/kenshoo/freemarker/model/ExecuteRequest.java @@ -1,23 +1,24 @@ /* - * Copyright 2014 Kenshoo.com + * 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 * - * 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 * - * 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. + * 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.kenshoo.freemarker.model; + package com.kenshoo.freemarker.model; + -/** - * Created by Pmuruge on 8/28/2015. - */ public class ExecuteRequest { private String template; private String dataModel; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/model/ExecuteResourceField.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/model/ExecuteResourceField.java b/src/main/java/com/kenshoo/freemarker/model/ExecuteResourceField.java index 05701ae..815b1e8 100644 --- a/src/main/java/com/kenshoo/freemarker/model/ExecuteResourceField.java +++ b/src/main/java/com/kenshoo/freemarker/model/ExecuteResourceField.java @@ -1,26 +1,27 @@ /* - * Copyright 2014 Kenshoo.com + * 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 * - * 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 * - * 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. + * 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.kenshoo.freemarker.model; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** - * Created by Pmuruge on 8/31/2015. - */ public enum ExecuteResourceField { DATA_MODEL("dataModel"), TEMPLATE("template"), http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/model/ExecuteResourceProblem.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/model/ExecuteResourceProblem.java b/src/main/java/com/kenshoo/freemarker/model/ExecuteResourceProblem.java index 4dab2f9..3acf216 100644 --- a/src/main/java/com/kenshoo/freemarker/model/ExecuteResourceProblem.java +++ b/src/main/java/com/kenshoo/freemarker/model/ExecuteResourceProblem.java @@ -1,17 +1,20 @@ /* - * Copyright 2014 Kenshoo.com + * 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 * - * 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 * - * 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. + * 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.kenshoo.freemarker.model; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/model/ExecuteResponse.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/model/ExecuteResponse.java b/src/main/java/com/kenshoo/freemarker/model/ExecuteResponse.java index c366ea5..8261858 100644 --- a/src/main/java/com/kenshoo/freemarker/model/ExecuteResponse.java +++ b/src/main/java/com/kenshoo/freemarker/model/ExecuteResponse.java @@ -1,25 +1,26 @@ /* - * Copyright 2014 Kenshoo.com + * 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 * - * 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 * - * 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. + * 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.kenshoo.freemarker.model; import java.util.List; -/** - * Created by Pmuruge on 8/29/2015. - */ public class ExecuteResponse { private String result; private List<ExecuteResourceProblem> problems; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/model/SelectionOption.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/model/SelectionOption.java b/src/main/java/com/kenshoo/freemarker/model/SelectionOption.java index f911a22..d68d419 100644 --- a/src/main/java/com/kenshoo/freemarker/model/SelectionOption.java +++ b/src/main/java/com/kenshoo/freemarker/model/SelectionOption.java @@ -1,17 +1,20 @@ /* - * Copyright 2014 Kenshoo.com + * 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 * - * 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 * - * 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. + * 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.kenshoo.freemarker.model; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineExecuteResource.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineExecuteResource.java b/src/main/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineExecuteResource.java index 413463f..d55f8a2 100644 --- a/src/main/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineExecuteResource.java +++ b/src/main/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineExecuteResource.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com + * 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 * - * 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 * - * 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. + * 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.kenshoo.freemarker.resources; import java.text.MessageFormat; @@ -49,9 +53,6 @@ import com.kenshoo.freemarker.util.ExceptionUtils; import freemarker.core.OutputFormat; -/** - * Created by pradeep on 8/28/2015. - */ @Path("/api/execute") @Component public class FreeMarkerOnlineExecuteResource { http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineResource.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineResource.java b/src/main/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineResource.java index f429981..45e850d 100644 --- a/src/main/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineResource.java +++ b/src/main/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineResource.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.resources; import javax.ws.rs.Consumes; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/services/AllowedSettingValuesMaps.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/services/AllowedSettingValuesMaps.java b/src/main/java/com/kenshoo/freemarker/services/AllowedSettingValuesMaps.java index 962e7c9..8b98df0 100644 --- a/src/main/java/com/kenshoo/freemarker/services/AllowedSettingValuesMaps.java +++ b/src/main/java/com/kenshoo/freemarker/services/AllowedSettingValuesMaps.java @@ -1,17 +1,20 @@ /* - * Copyright 2014 Kenshoo.com + * 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 * - * 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 * - * 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. + * 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.kenshoo.freemarker.services; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/services/FreeMarkerService.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/services/FreeMarkerService.java b/src/main/java/com/kenshoo/freemarker/services/FreeMarkerService.java index e594651..84a96ea 100644 --- a/src/main/java/com/kenshoo/freemarker/services/FreeMarkerService.java +++ b/src/main/java/com/kenshoo/freemarker/services/FreeMarkerService.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.services; import java.io.StringReader; @@ -51,12 +55,6 @@ import freemarker.template.Template; import freemarker.template.TemplateException; import freemarker.template.TemplateExceptionHandler; -/** - * Created with IntelliJ IDEA. - * User: nir - * Date: 4/12/14 - * Time: 10:15 AM - */ @Service public class FreeMarkerService { http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/services/FreeMarkerServiceException.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/services/FreeMarkerServiceException.java b/src/main/java/com/kenshoo/freemarker/services/FreeMarkerServiceException.java index 118528d..ae7970d 100644 --- a/src/main/java/com/kenshoo/freemarker/services/FreeMarkerServiceException.java +++ b/src/main/java/com/kenshoo/freemarker/services/FreeMarkerServiceException.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.services; /** http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/services/FreeMarkerServiceResponse.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/services/FreeMarkerServiceResponse.java b/src/main/java/com/kenshoo/freemarker/services/FreeMarkerServiceResponse.java index eab7ce3..8aa37ec 100644 --- a/src/main/java/com/kenshoo/freemarker/services/FreeMarkerServiceResponse.java +++ b/src/main/java/com/kenshoo/freemarker/services/FreeMarkerServiceResponse.java @@ -1,26 +1,24 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.services; -/** - * Created with IntelliJ IDEA. - * User: nir - * Date: 4/12/14 - * Time: 11:28 AM - */ public class FreeMarkerServiceResponse { private final String templateOutput; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/util/DataModelParser.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/util/DataModelParser.java b/src/main/java/com/kenshoo/freemarker/util/DataModelParser.java index 28cf6ff..ada847d 100644 --- a/src/main/java/com/kenshoo/freemarker/util/DataModelParser.java +++ b/src/main/java/com/kenshoo/freemarker/util/DataModelParser.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.util; import java.io.IOException; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/util/DataModelParsingException.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/util/DataModelParsingException.java b/src/main/java/com/kenshoo/freemarker/util/DataModelParsingException.java index cd24407..926e10b 100644 --- a/src/main/java/com/kenshoo/freemarker/util/DataModelParsingException.java +++ b/src/main/java/com/kenshoo/freemarker/util/DataModelParsingException.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.util; import java.util.TimeZone; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/util/ExceptionUtils.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/util/ExceptionUtils.java b/src/main/java/com/kenshoo/freemarker/util/ExceptionUtils.java index 999c450..5c7548b 100644 --- a/src/main/java/com/kenshoo/freemarker/util/ExceptionUtils.java +++ b/src/main/java/com/kenshoo/freemarker/util/ExceptionUtils.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.util; import freemarker.core.ParseException; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/util/LengthLimitExceededException.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/util/LengthLimitExceededException.java b/src/main/java/com/kenshoo/freemarker/util/LengthLimitExceededException.java index 67effd0..df25144 100644 --- a/src/main/java/com/kenshoo/freemarker/util/LengthLimitExceededException.java +++ b/src/main/java/com/kenshoo/freemarker/util/LengthLimitExceededException.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.util; import java.io.IOException; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/util/LengthLimitedWriter.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/util/LengthLimitedWriter.java b/src/main/java/com/kenshoo/freemarker/util/LengthLimitedWriter.java index a4d1450..abf3edc 100644 --- a/src/main/java/com/kenshoo/freemarker/util/LengthLimitedWriter.java +++ b/src/main/java/com/kenshoo/freemarker/util/LengthLimitedWriter.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.util; import java.io.FilterWriter; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/com/kenshoo/freemarker/view/FreeMarkerOnlineView.java ---------------------------------------------------------------------- diff --git a/src/main/java/com/kenshoo/freemarker/view/FreeMarkerOnlineView.java b/src/main/java/com/kenshoo/freemarker/view/FreeMarkerOnlineView.java index 684511f..53d771b 100644 --- a/src/main/java/com/kenshoo/freemarker/view/FreeMarkerOnlineView.java +++ b/src/main/java/com/kenshoo/freemarker/view/FreeMarkerOnlineView.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.view; import java.nio.charset.Charset; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/java/freemarker/core/FreeMarkerInternalsAccessor.java ---------------------------------------------------------------------- diff --git a/src/main/java/freemarker/core/FreeMarkerInternalsAccessor.java b/src/main/java/freemarker/core/FreeMarkerInternalsAccessor.java index 1ffc7f7..ab9ce3a 100644 --- a/src/main/java/freemarker/core/FreeMarkerInternalsAccessor.java +++ b/src/main/java/freemarker/core/FreeMarkerInternalsAccessor.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package freemarker.core; import freemarker.core.ThreadInterruptionSupportTemplatePostProcessor.TemplateProcessingThreadInterruptedException; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/resources/assets/css/main.css ---------------------------------------------------------------------- diff --git a/src/main/resources/assets/css/main.css b/src/main/resources/assets/css/main.css index 44b8972..5dc0837 100644 --- a/src/main/resources/assets/css/main.css +++ b/src/main/resources/assets/css/main.css @@ -1,3 +1,22 @@ +/* + * 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. + */ + .clear { clear: both; } http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/resources/assets/js/script.js ---------------------------------------------------------------------- diff --git a/src/main/resources/assets/js/script.js b/src/main/resources/assets/js/script.js index 7e88910..dd0da2b 100644 --- a/src/main/resources/assets/js/script.js +++ b/src/main/resources/assets/js/script.js @@ -1,22 +1,22 @@ /* - * Copyright 2014 Kenshoo.com + * 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 * - * 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 * - * 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. + * 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. */ -/** - * Created by Pmuruge on 8/28/2015. - */ $(document).ready(function() { $("#eval-btn").click(function() { execute(); http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/resources/freemarker-online.yml ---------------------------------------------------------------------- diff --git a/src/main/resources/freemarker-online.yml b/src/main/resources/freemarker-online.yml index 370dd91..2b50ba5 100644 --- a/src/main/resources/freemarker-online.yml +++ b/src/main/resources/freemarker-online.yml @@ -1,3 +1,20 @@ +# 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. + # Spring configuration # Application Contexts to Load. applicationContext: ['classpath*:/spring/*-context.xml'] http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/resources/spring/bootstrap-context.xml ---------------------------------------------------------------------- diff --git a/src/main/resources/spring/bootstrap-context.xml b/src/main/resources/spring/bootstrap-context.xml index 2ea0c33..db4bf9b 100644 --- a/src/main/resources/spring/bootstrap-context.xml +++ b/src/main/resources/spring/bootstrap-context.xml @@ -1,4 +1,23 @@ <?xml version="1.0" encoding="UTF-8"?> + +<!-- + 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. +--> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/resources/view/freemarker-online.ftl ---------------------------------------------------------------------- diff --git a/src/main/resources/view/freemarker-online.ftl b/src/main/resources/view/freemarker-online.ftl index 57746ff..1246b7e 100644 --- a/src/main/resources/view/freemarker-online.ftl +++ b/src/main/resources/view/freemarker-online.ftl @@ -1,4 +1,24 @@ <#ftl outputFormat="HTML"> + +/* +* 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 "utils.ftl" as u> <!DOCTYPE html> <html> http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/main/resources/view/utils.ftl ---------------------------------------------------------------------- diff --git a/src/main/resources/view/utils.ftl b/src/main/resources/view/utils.ftl index cfa5ee6..aa6e8c5 100644 --- a/src/main/resources/view/utils.ftl +++ b/src/main/resources/view/utils.ftl @@ -1,5 +1,25 @@ <#ftl outputFormat='HTML'> +/* +* 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. +*/ + + <#macro htmlSelect caption name selectionOptions> <div>${caption}:</div> <div> http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/test/java/com/kenshoo/freemarker/platform/DropWizardServiceTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/com/kenshoo/freemarker/platform/DropWizardServiceTest.java b/src/test/java/com/kenshoo/freemarker/platform/DropWizardServiceTest.java index 38f7e88..62dd648 100644 --- a/src/test/java/com/kenshoo/freemarker/platform/DropWizardServiceTest.java +++ b/src/test/java/com/kenshoo/freemarker/platform/DropWizardServiceTest.java @@ -1,18 +1,19 @@ /* * Copyright 2014 Kenshoo.com - * + * * 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.kenshoo.freemarker.platform; import com.google.common.io.Resources; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/test/java/com/kenshoo/freemarker/platform/YamlPropertiesPersister.java ---------------------------------------------------------------------- diff --git a/src/test/java/com/kenshoo/freemarker/platform/YamlPropertiesPersister.java b/src/test/java/com/kenshoo/freemarker/platform/YamlPropertiesPersister.java index e01a881..390136d 100644 --- a/src/test/java/com/kenshoo/freemarker/platform/YamlPropertiesPersister.java +++ b/src/test/java/com/kenshoo/freemarker/platform/YamlPropertiesPersister.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.platform; import com.fasterxml.jackson.dataformat.yaml.snakeyaml.Yaml; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/test/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineExecuteResourceTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineExecuteResourceTest.java b/src/test/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineExecuteResourceTest.java index f4886c8..e7ca204 100644 --- a/src/test/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineExecuteResourceTest.java +++ b/src/test/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineExecuteResourceTest.java @@ -1,17 +1,20 @@ /* - * Copyright 2014 Kenshoo.com + * 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 * - * 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 * - * 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. + * 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.kenshoo.freemarker.resources; @@ -37,9 +40,6 @@ import com.sun.jersey.test.framework.AppDescriptor; import com.sun.jersey.test.framework.JerseyTest; import com.sun.jersey.test.framework.WebAppDescriptor; -/** - * Created by Pmuruge on 8/29/2015. - */ public class FreeMarkerOnlineExecuteResourceTest extends JerseyTest { private static final String DATA_MODEL = "user=John"; private static final String TEMPLATE_WITH_VARIABLE = "Welcome ${user}"; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/test/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineResourceTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineResourceTest.java b/src/test/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineResourceTest.java index ea30902..f7225c1 100644 --- a/src/test/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineResourceTest.java +++ b/src/test/java/com/kenshoo/freemarker/resources/FreeMarkerOnlineResourceTest.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.resources; import static org.junit.Assert.assertEquals; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/test/java/com/kenshoo/freemarker/services/FreeMarkerServiceResponseBuilderTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/com/kenshoo/freemarker/services/FreeMarkerServiceResponseBuilderTest.java b/src/test/java/com/kenshoo/freemarker/services/FreeMarkerServiceResponseBuilderTest.java index d30bdec..f970c91 100644 --- a/src/test/java/com/kenshoo/freemarker/services/FreeMarkerServiceResponseBuilderTest.java +++ b/src/test/java/com/kenshoo/freemarker/services/FreeMarkerServiceResponseBuilderTest.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.services; import static org.hamcrest.Matchers.*; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/test/java/com/kenshoo/freemarker/services/FreeMarkerServiceTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/com/kenshoo/freemarker/services/FreeMarkerServiceTest.java b/src/test/java/com/kenshoo/freemarker/services/FreeMarkerServiceTest.java index 5bd19dd..c7147f4 100644 --- a/src/test/java/com/kenshoo/freemarker/services/FreeMarkerServiceTest.java +++ b/src/test/java/com/kenshoo/freemarker/services/FreeMarkerServiceTest.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.services; import static org.hamcrest.Matchers.equalTo; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/test/java/com/kenshoo/freemarker/util/DataModelParserTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/com/kenshoo/freemarker/util/DataModelParserTest.java b/src/test/java/com/kenshoo/freemarker/util/DataModelParserTest.java index 08f389c..f651fb8 100644 --- a/src/test/java/com/kenshoo/freemarker/util/DataModelParserTest.java +++ b/src/test/java/com/kenshoo/freemarker/util/DataModelParserTest.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.util; import static org.hamcrest.Matchers.*; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/test/java/com/kenshoo/freemarker/util/LengthLimitedWriterTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/com/kenshoo/freemarker/util/LengthLimitedWriterTest.java b/src/test/java/com/kenshoo/freemarker/util/LengthLimitedWriterTest.java index 169b39e..c56d52e 100644 --- a/src/test/java/com/kenshoo/freemarker/util/LengthLimitedWriterTest.java +++ b/src/test/java/com/kenshoo/freemarker/util/LengthLimitedWriterTest.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.util; import static org.junit.Assert.*; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/test/java/com/kenshoo/freemarker/view/FreeMarkerOnlineViewTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/com/kenshoo/freemarker/view/FreeMarkerOnlineViewTest.java b/src/test/java/com/kenshoo/freemarker/view/FreeMarkerOnlineViewTest.java index b73410f..2aa5ea8 100644 --- a/src/test/java/com/kenshoo/freemarker/view/FreeMarkerOnlineViewTest.java +++ b/src/test/java/com/kenshoo/freemarker/view/FreeMarkerOnlineViewTest.java @@ -1,18 +1,22 @@ /* - * Copyright 2014 Kenshoo.com - * - * 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. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.kenshoo.freemarker.view; import static org.junit.Assert.assertEquals; http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/521edc53/src/test/resources/spring/test-context.xml ---------------------------------------------------------------------- diff --git a/src/test/resources/spring/test-context.xml b/src/test/resources/spring/test-context.xml index 2ca10e6..8f798a0 100644 --- a/src/test/resources/spring/test-context.xml +++ b/src/test/resources/spring/test-context.xml @@ -1,4 +1,23 @@ <?xml version="1.0" encoding="UTF-8"?> +<!-- + 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. +--> + <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
