Renamed constant and added license
* limitations under the License.
*/
+/*
+ * 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.exadel.aem.toolkit.test.custom.handler.ordering;
import java.util.ArrayList;
@@ -28,9 +42,7 @@ public class DialogManualOrderingTestCases {
private static final List<String> ATTRIBUTE_LIST = new ArrayList<>(3);
- private static int counter = 0;
-
- private static final String ORDER = "order";
+ private static final String ATTRIBUTE_VALUE_ORDER = "order";
static {
ATTRIBUTE_LIST.add("property1");
@@ -38,6 +50,8 @@ public class DialogManualOrderingTestCases {
ATTRIBUTE_LIST.add("property3");
}
+ private static int counter = 0;
+
@Handles(value = DialogAnnotationForOrderingTest.class, after = DialogHandler2.class)
public static class DialogHandler1 implements DialogHandler {
@@ -45,7 +59,7 @@ public class DialogManualOrderingTestCases {
public void accept(Class<?> source, Target target) {
counter++;
target
- .attribute(ATTRIBUTE_LIST.get(0), ORDER + counter);
+ .attribute(ATTRIBUTE_LIST.get(0), ATTRIBUTE_VALUE_ORDER + counter);
}
}
@@ -56,7 +70,7 @@ public class DialogManualOrderingTestCases {
public void accept(Class<?> source, Target target) {
counter++;
target
- .attribute(ATTRIBUTE_LIST.get(1), ORDER + counter);
+ .attribute(ATTRIBUTE_LIST.get(1), ATTRIBUTE_VALUE_ORDER + counter);
}
}
@@ -67,7 +81,7 @@ public class DialogManualOrderingTestCases {
public void accept(Class<?> source, Target target) {
counter++;
target
- .attribute(ATTRIBUTE_LIST.get(2), ORDER + counter);
+ .attribute(ATTRIBUTE_LIST.get(2), ATTRIBUTE_VALUE_ORDER + counter);
}
}
}
