All Downloads are FREE. Search and download functionalities are using the official Maven repository.

patterntesting.sample.animal.Penguin Maven / Gradle / Ivy

Go to download

PatternTesting Samples (patterntesting-samples) is a collection of samples how to use the PatternTesting framework. It uses patterntesting-rt, patterntesting-check, patterntesting-concurrent and patterntesting-exception to give you some ideas how to use it.

There is a newer version: 2.4.0
Show newest version
/*
 * Copyright (c) 2008-2019 by Oliver Boehm
 *
 * 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 orimplied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * (c)reated 22.01.2009 by oliver ([email protected])
 */
package patterntesting.sample.animal;

import patterntesting.annotation.check.ct.SuppressSystemOutWarning;

/**
 * The Class Penguin.
 *
 * @author oliver
 * @since 0.9 (22.01.2009)
 */
public final class Penguin extends Bird {

    /**
     * Instantiates a new penguin.
     *
     * @param name the name
     */
    public Penguin(final String name) {
        super(name);
    }

    /**
     * Say hello.
     *
     * @see patterntesting.sample.animal.Bird#sayHello()
     */
    @Override
    @SuppressSystemOutWarning
    public void sayHello() {
        System.out.println("Hi, I am " + this);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy