// Path: SDI-core/src/main/java/ch/sdi/report/ReportMsg.java
// public enum ReportType
// {
//     COLLECTOR,
//     COLLECTOR_CFG,
//     COLLECTOR_PROBLEM,
//     PREPARSE_FILTER,
//     POSTPARSE_FILTER,
//     SKIPPED_NO_EMAIL,
//     TARGET,
//     TARGET_PROBLEM,
//     MAIL_TARGET,
//     SQL_TARGET,
//     FTP_TARGET
// };


import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Before;
import org.junit.Test;
import ch.sdi.report.ReportMsg.ReportType;
/**
 * Copyright (c) 2014 by the original author or authors.
 *
 * This code is free software; you can redistribute it and/or modify it under the terms of the
 * GNU Lesser General Public License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * The above copyright notice and this permission notice shall be included in all copies or
 * substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */


package ch.sdi.report;





/**
 * Testcase
 *
 * @version 1.0 (19.11.2014)
 * @author  Heri
 */
public class ReportMsgTest
{

    /** logger for this class */
    private Logger myLog = LogManager.getLogger( ReportMsgTest.class );

    /**
     * @throws java.lang.Exception
     */
    @Before
    public void setUp() throws Exception
    {
    }

    @Test
    public void testOk()
    {
        for ( ReportType type : ReportType.values() )
        {
            myLog.debug( new ReportMsg( type, "Hallo", new ArrayList<String>() ) );
        }
    }

    @Test(expected=NullPointerException.class)
    public void testNullPointer()
    {
// Path: SDI-core/src/main/java/ch/sdi/report/ReportMsg.java
// public enum ReportType
// {
//     COLLECTOR,
//     COLLECTOR_CFG,
//     COLLECTOR_PROBLEM,
//     PREPARSE_FILTER,
//     POSTPARSE_FILTER,
//     SKIPPED_NO_EMAIL,
//     TARGET,
//     TARGET_PROBLEM,
//     MAIL_TARGET,
//     SQL_TARGET,
//     FTP_TARGET
// };


// Path: SDI-core/src/test/java/ch/sdi/report/ReportMsgTest.java
import java.util.ArrayList;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Before;
import org.junit.Test;
import ch.sdi.report.ReportMsg.ReportType;

/**
 * Copyright (c) 2014 by the original author or authors.
 *
 * This code is free software; you can redistribute it and/or modify it under the terms of the
 * GNU Lesser General Public License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * The above copyright notice and this permission notice shall be included in all copies or
 * substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */


package ch.sdi.report;





/**
 * Testcase
 *
 * @version 1.0 (19.11.2014)
 * @author  Heri
 */
public class ReportMsgTest
{

    /** logger for this class */
    private Logger myLog = LogManager.getLogger( ReportMsgTest.class );

    /**
     * @throws java.lang.Exception
     */
    @Before
    public void setUp() throws Exception
    {
    }

    @Test
    public void testOk()
    {
        for ( ReportType type : ReportType.values() )
        {
            myLog.debug( new ReportMsg( type, "Hallo", new ArrayList<String>() ) );
        }
    }

    @Test(expected=NullPointerException.class)
    public void testNullPointer()
    {
        for ( ReportType type : ReportType.values() )