Ignore:
Timestamp:
01/16/13 17:51:51 (11 years ago)
Author:
adeicke
Message:
  • Removed lombok related annotations and util class
  • Added comments and formating due to match project defaults
Location:
trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/evaluation/rule/evaluator
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/evaluation/rule/evaluator/AbstractUsabilityEvaluationTC.java

    r1030 r1040  
    8888     * @param evaluateUsability 
    8989     */ 
    90     protected void assertUsabilityEvaluationResult(UsabilityDefect[]         expectedDefects, 
     90    protected void assertUsabilityEvaluationResult(UsabilityDefect[] expectedDefects, 
    9191                                                   UsabilityEvaluationResult evaluationResult) 
    9292    { 
    9393        assertEquals(expectedDefects.length, evaluationResult.getAllDefects().size()); 
    9494 
    95         EXPECTED_DEFECT_ITERATION: 
    96         for (UsabilityDefect expectedDefect : expectedDefects) { 
     95        EXPECTED_DEFECT_ITERATION: for (UsabilityDefect expectedDefect : expectedDefects) { 
    9796            for (UsabilityDefect defect : evaluationResult.getAllDefects()) { 
    9897                if (expectedDefect.equals(defect)) { 
     
    167166 
    168167        if ("Interaction".equals(type)) { 
    169             return taskTreeNodeFactory.createNewEventTask 
    170                 (new DummyInteraction("dummy", typeNumbers[0]++), new DummyGUIElement("dummy")); 
     168            return taskTreeNodeFactory.createNewEventTask(new DummyInteraction("dummy", 
     169                                                                               typeNumbers[0]++), 
     170                                                          new DummyGUIElement("dummy")); 
    171171        } 
    172172        else if ("Sequence".equals(type)) { 
     
    185185 
    186186            TextInput textInput = new TextInput(additionalInfo, new ArrayList<Event>()); 
    187              
    188             IEventTask task = taskTreeNodeFactory.createNewEventTask 
    189                 (textInput, new DummyTextField(additionalInfo)); 
     187 
     188            IEventTask task = 
     189                taskTreeNodeFactory.createNewEventTask(textInput, 
     190                                                       new DummyTextField(additionalInfo)); 
    190191 
    191192            return task; 
     
    220221        else { 
    221222            fail("can not add children to parent task tree node of type " + 
    222                  parent.getClass().getName()); 
     223                parent.getClass().getName()); 
    223224        } 
    224225    } 
  • trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/evaluation/rule/evaluator/NoLetterOrDigitTextInputsEvaluatorTest.java

    r1034 r1040  
     1//   Copyright 2012 Georg-August-Universität Göttingen, Germany 
     2// 
     3//   Licensed under the Apache License, Version 2.0 (the "License"); 
     4//   you may not use this file except in compliance with the License. 
     5//   You may obtain a copy of the License at 
     6// 
     7//       http://www.apache.org/licenses/LICENSE-2.0 
     8// 
     9//   Unless required by applicable law or agreed to in writing, software 
     10//   distributed under the License is distributed on an "AS IS" BASIS, 
     11//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
     12//   See the License for the specific language governing permissions and 
     13//   limitations under the License. 
    114 
    215package de.ugoe.cs.autoquest.usability.evaluation.rule.evaluator; 
     
    2639import de.ugoe.cs.autoquest.usability.tasktree.filter.FilterStatisticCache; 
    2740 
     41/** 
     42 * <p> 
     43 * TODO comment 
     44 * </p> 
     45 *  
     46 * @author Alexander Deicke 
     47 */ 
    2848public class NoLetterOrDigitTextInputsEvaluatorTest extends AbstractUsabilityEvaluationTC { 
    2949 
     
    3252    @Before 
    3353    public void initRuleUnderTest() { 
    34         EnumSet<? extends UsabilityRule> ruleset = 
    35             textInputUsabiliyRuleset().evaluationRules(); 
     54        EnumSet<? extends UsabilityRule> ruleset = textInputUsabiliyRuleset().evaluationRules(); 
    3655        this.ruleUnderTest = Iterables.find(ruleset, new Predicate<UsabilityRule>() { 
    3756 
  • trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/evaluation/rule/evaluator/TextInputEntryRepetitionsEvaluatorTest.java

    r1034 r1040  
     1//   Copyright 2012 Georg-August-Universität Göttingen, Germany 
     2// 
     3//   Licensed under the Apache License, Version 2.0 (the "License"); 
     4//   you may not use this file except in compliance with the License. 
     5//   You may obtain a copy of the License at 
     6// 
     7//       http://www.apache.org/licenses/LICENSE-2.0 
     8// 
     9//   Unless required by applicable law or agreed to in writing, software 
     10//   distributed under the License is distributed on an "AS IS" BASIS, 
     11//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
     12//   See the License for the specific language governing permissions and 
     13//   limitations under the License. 
    114 
    215package de.ugoe.cs.autoquest.usability.evaluation.rule.evaluator; 
     
    2639import de.ugoe.cs.autoquest.usability.tasktree.filter.FilterStatisticCache; 
    2740 
     41/** 
     42 * <p> 
     43 * TODO comment 
     44 * </p> 
     45 *  
     46 * @author Alexander Deicke 
     47 */ 
    2848public class TextInputEntryRepetitionsEvaluatorTest extends AbstractUsabilityEvaluationTC { 
    2949 
     
    3252    @Before 
    3353    public void initRuleUnderTest() { 
    34         EnumSet<? extends UsabilityRule> ruleset = 
    35             textInputUsabiliyRuleset().evaluationRules(); 
     54        EnumSet<? extends UsabilityRule> ruleset = textInputUsabiliyRuleset().evaluationRules(); 
    3655        this.ruleUnderTest = Iterables.find(ruleset, new Predicate<UsabilityRule>() { 
    3756 
     
    85104            new TextInputEntryRepetitionsEvaluator(this.ruleUnderTest, taskTree).evaluationResult(); 
    86105        // Then 
    87         assertThat(recommendation).is(present()).has(lowRecommendationSeverityLevel());    } 
     106        assertThat(recommendation).is(present()).has(lowRecommendationSeverityLevel()); 
     107    } 
    88108 
    89109    @Test 
  • trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/evaluation/rule/evaluator/TextInputRatioEvaluatorTest.java

    r1034 r1040  
     1//   Copyright 2012 Georg-August-Universität Göttingen, Germany 
     2// 
     3//   Licensed under the Apache License, Version 2.0 (the "License"); 
     4//   you may not use this file except in compliance with the License. 
     5//   You may obtain a copy of the License at 
     6// 
     7//       http://www.apache.org/licenses/LICENSE-2.0 
     8// 
     9//   Unless required by applicable law or agreed to in writing, software 
     10//   distributed under the License is distributed on an "AS IS" BASIS, 
     11//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
     12//   See the License for the specific language governing permissions and 
     13//   limitations under the License. 
    114 
    215package de.ugoe.cs.autoquest.usability.evaluation.rule.evaluator; 
     
    2639import de.ugoe.cs.autoquest.usability.tasktree.filter.FilterStatisticCache; 
    2740 
     41/** 
     42 * <p> 
     43 * TODO comment 
     44 * </p> 
     45 *  
     46 * @author Alexander Deicke 
     47 */ 
    2848public class TextInputRatioEvaluatorTest extends AbstractUsabilityEvaluationTC { 
    2949 
     
    3252    @Before 
    3353    public void initRuleUnderTest() { 
    34         EnumSet<? extends UsabilityRule> ruleset = 
    35             textInputUsabiliyRuleset().evaluationRules(); 
     54        EnumSet<? extends UsabilityRule> ruleset = textInputUsabiliyRuleset().evaluationRules(); 
    3655        this.ruleUnderTest = Iterables.find(ruleset, new Predicate<UsabilityRule>() { 
    3756 
Note: See TracChangeset for help on using the changeset viewer.