/*
 *  @author Ranides Atterwim <ranides@gmail.com>
 *  @copyright Ranides Atterwim
 *  @license WTFPL
 *  @url http://ranides.net/projects/assira.test
 */
package net.ranides.assira.rules.test;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

/**
 * RULE: TEST-ECB (import from standard empty.xml/EmptyCatchBlock)
 * RULE: TEST-UF (our first custom class)
 * 
 * RULE: TEST-UP (assira.custom.xml/UnusedParameter)
 * 
 * @author Ranides Atterwim <ranides@gmail.com>
 */
@SuppressFBWarnings
public class CustomRules1 { // Expected: TEST-UF
    
    // @todo (assira.rules) support for @Test and @TestContract
    
    // Niech reguły do junit wykrywają metody adnotowane za pomocą:
    // @Test 
    //      MethodNameRules aplikuje reguły nazw: testMyMethod_WithOptions (takie pseudo-c)
    // @TestContract
    //      MethodNameRules aplikuje reguły nazw j/w
    //      wyłącza "JUnit4TestShouldUseTestAnnotation

    
    public void first() {
        try {
            if (true);

            if (true) {
            }

            System.out.println("Hello world");
        } catch (RuntimeException ex) { // Expected: TEST-ECB
            
        }
    }
    
    
    private void runme(
        int hello, 
        Object $world, 
        int _x, 
        int variable, // Expected: TEST-UP for "variable"
        int a
    ) {
        // do nothing
        int v = hello + a;
    }

}
