<commit_before>package org.kohsuke.args4j;

public class InheritanceTest extends Args4JTestBase {

    @Override
    public Object getTestObject() {
        return new Inheritance();
    }
    
    public void testMyself() {
        args = new String[]{"-m","Thats me"};
        Inheritance bo = (Inheritance)testObject;
        try {
            parser.parseArgument(args);
            assertEquals("Value for class itself not arrived", "Thats me", bo.me);
        } catch (CmdLineException e) {
            fail("This exception should not occur");
        }
    }

    public void testFather() {
        args = new String[]{"-f","My father"};
        Inheritance bo = (Inheritance)testObject;
        try {
            parser.parseArgument(args);
            assertEquals("Value for class itself not arrived", "My father", bo.father);
        } catch (CmdLineException e) {
            fail("This exception should not occur");
        }
    }

    public void testGrandfather() {
        args = new String[]{"-g","My fathers father"};
        Inheritance bo = (Inheritance)testObject;
        try {
            parser.parseArgument(args);
            assertEquals("Value for class itself not arrived", "My fathers father", bo.grandpa);
        } catch (CmdLineException e) {
            fail("This exception should not occur");
        }
    }
    
    public void testMother() {
        args = new String[]{"-mom","Hi Mom"};
        Inheritance bo = (Inheritance)testObject;
        try {
            parser.parseArgument(args);
            assertEquals("Value for class itself not arrived", "Hi mom", bo.mom);
        } catch (CmdLineException e) {
            fail("This exception should not occur");
        }
    }
    <commit_msg>Annotations are not designed for use in interfaces.<commit_after>package org.kohsuke.args4j;

public class InheritanceTest extends Args4JTestBase {

    @Override
    public Object getTestObject() {
        return new Inheritance();
    }
    
    public void testMyself() {
        args = new String[]{"-m","Thats me"};
        Inheritance bo = (Inheritance)testObject;
        try {
            parser.parseArgument(args);
            assertEquals("Value for class itself not arrived", "Thats me", bo.me);
        } catch (CmdLineException e) {
            fail("This exception should not occur");
        }
    }

    public void testFather() {
        args = new String[]{"-f","My father"};
        Inheritance bo = (Inheritance)testObject;
        try {
            parser.parseArgument(args);
            assertEquals("Value for class itself not arrived", "My father", bo.father);
        } catch (CmdLineException e) {
            fail("This exception should not occur");
        }
    }

    public void testGrandfather() {
        args = new String[]{"-g","My fathers father"};
        Inheritance bo = (Inheritance)testObject;
        try {
            parser.parseArgument(args);
            assertEquals("Value for class itself not arrived", "My fathers father", bo.grandpa);
        } catch (CmdLineException e) {
            fail("This exception should not occur");
        }
    }
    
    public void testMother() {
        args = new String[]{"-mom","Hi Mom"};
        Inheritance bo = (Inheritance)testObject;
        try {
            parser.parseArgument(args);
            assertNull("Annotations are not designed for use in interfaces", bo.mom);
        } catch (CmdLineException e) {
            //no-op
        }
    }
    
{'fraction_non_alphanumeric': 0.11076040172166428, 'fraction_numerical': 0.0011477761836441894, 'mean_word_length': 2.118067978533095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3828114', 'n_tokens_mistral': 969, 'n_tokens_neox': 912, 'n_words': 267}