/*************************************************************************
 *
 * ADOBE CONFIDENTIAL
 * ___________________
 *
 * Copyright 2013 Adobe Systems Incorporated
 * All Rights Reserved.
 *
 * NOTICE: All information contained herein is, and remains
 * the property of Adobe Systems Incorporated and its suppliers,
 * if any. The intellectual and technical concepts contained
 * herein are proprietary to Adobe Systems Incorporated and its
 * suppliers and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe Systems Incorporated.
 **************************************************************************/
package org.apache.felix.inventory;

import junit.framework.TestCase;

public class PrinterModeTest extends TestCase
{

    public void test_valueOf()
    {
        TestCase.assertSame(PrinterMode.TEXT, PrinterMode.valueOf("TEXT"));
        TestCase.assertSame(PrinterMode.JSON, PrinterMode.valueOf("JSON"));
        TestCase.assertSame(PrinterMode.HTML_FRAGMENT, PrinterMode.valueOf("HTML_FRAGMENT"));

        TestCase.assertNull(PrinterMode.valueOf("unsupported_name"));
    }

    public void test_name()
    {
        TestCase.assertEquals("TEXT", PrinterMode.TEXT.name());
        TestCase.assertEquals("JSON", PrinterMode.JSON.name());
        TestCase.assertEquals("HTML_FRAGMENT", PrinterMode.HTML_FRAGMENT.name());
    }

    public void test_equals()
    {
        TestCase.assertTrue(PrinterMode.TEXT.equals(PrinterMode.TEXT));
        TestCase.assertFalse(PrinterMode.TEXT.equals(PrinterMode.JSON));
        TestCase.assertFalse(PrinterMode.TEXT.equals(PrinterMode.HTML_FRAGMENT));

        TestCase.assertFalse(PrinterMode.JSON.equals(PrinterMode.TEXT));
        TestCase.assertTrue(PrinterMode.JSON.equals(PrinterMode.JSON));
        TestCase.assertFalse(PrinterMode.JSON.equals(PrinterMode.HTML_FRAGMENT));

        TestCase.assertFalse(PrinterMode.HTML_FRAGMENT.equals(PrinterMode.TEXT));
        TestCase.assertFalse(PrinterMode.HTML_FRAGMENT.equals(PrinterMode.JSON));
        TestCase.assertTrue(PrinterMode.HTML_FRAGMENT.equals(PrinterMode.HTML_FRAGMENT));
    }

}

@@ -1,766 +1,809 @@
 /*
-************************************************************************%0A *%0A * ADOBE CONFIDENTIAL%0A * ___________________%0A *%0A * Copyright 2013 Adobe Systems Incorporated%0A * All Rights Reserved.%0A *%0A * NOTICE: All information contained herein is, and remains%0A * the property of Adobe Systems Incorporated and its suppliers,%0A * if any. The intellectual and technical concepts contained%0A * herein are proprietary to Adobe Systems Incorporated and its%0A * suppliers and are protected by trade secret or copyright law.%0A * Dissemination of this information or reproduction of this material%0A * is strictly forbidden unless prior written permission is obtained%0A * from Adobe Systems Incorporated.%0A *************************************************************************
+%0A * Licensed to the Apache Software Foundation (ASF) under one%0A * or more contributor license agreements.  See the NOTICE file%0A * distributed with this work for additional information%0A * regarding copyright ownership.  The ASF licenses this file%0A * to you under the Apache License, Version 2.0 (the%0A * %22License%22); you may not use this file except in compliance%0A * with the License.  You may obtain a copy of the License at%0A *%0A *   http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing,%0A * software distributed under the License is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied.  See the License for the%0A * specific language governing permissions and limitations%0A * under the License.%0A 
 */%0Ap

Fix License