001    // SECTION-START[License Header]
002    // <editor-fold defaultstate="collapsed" desc=" Generated License ">
003    /*
004     *   Java Object Management and Configuration
005     *   Copyright (C) Christian Schulte, 2005-206
006     *   All rights reserved.
007     *
008     *   Redistribution and use in source and binary forms, with or without
009     *   modification, are permitted provided that the following conditions
010     *   are met:
011     *
012     *     o Redistributions of source code must retain the above copyright
013     *       notice, this list of conditions and the following disclaimer.
014     *
015     *     o Redistributions in binary form must reproduce the above copyright
016     *       notice, this list of conditions and the following disclaimer in
017     *       the documentation and/or other materials provided with the
018     *       distribution.
019     *
020     *   THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
021     *   INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
022     *   AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
023     *   THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
024     *   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
025     *   NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
026     *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
027     *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
028     *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
029     *   THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
030     *
031     *   $JOMC: Log4JLoggerTest.java 4274 2012-02-17 04:07:29Z schulte2005 $
032     *
033     */
034    // </editor-fold>
035    // SECTION-END
036    package org.jomc.logging.ri.log4j.test;
037    
038    import org.jomc.logging.it.LoggerTest;
039    
040    // SECTION-START[Documentation]
041    // <editor-fold defaultstate="collapsed" desc=" Generated Documentation ">
042    /**
043     * Test cases for class {@code org.jomc.logging.ri.jdk.JdkLogger}.
044     *
045     * <dl>
046     *   <dt><b>Identifier:</b></dt><dd>org.jomc.logging.ri.log4j.test.Log4JLoggerTest</dd>
047     *   <dt><b>Name:</b></dt><dd>JOMC Logging Log4J Logging</dd>
048     *   <dt><b>Abstract:</b></dt><dd>No</dd>
049     *   <dt><b>Final:</b></dt><dd>No</dd>
050     *   <dt><b>Stateless:</b></dt><dd>Yes</dd>
051     * </dl>
052     *
053     * @author <a href="mailto:schulte2005@users.sourceforge.net">Christian Schulte</a> 1.0
054     * @version 1.1
055     */
056    // </editor-fold>
057    // SECTION-END
058    // SECTION-START[Annotations]
059    // <editor-fold defaultstate="collapsed" desc=" Generated Annotations ">
060    @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2" )
061    // </editor-fold>
062    // SECTION-END
063    public final class Log4JLoggerTest extends LoggerTest
064    {
065        // SECTION-START[Log4JLoggerTest]
066        // SECTION-END
067        // SECTION-START[Constructors]
068        // <editor-fold defaultstate="collapsed" desc=" Generated Constructors ">
069        /** Creates a new {@code Log4JLoggerTest} instance. */
070        @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2" )
071        public Log4JLoggerTest()
072        {
073            // SECTION-START[Default Constructor]
074            super();
075            // SECTION-END
076        }
077        // </editor-fold>
078        // SECTION-END
079        // SECTION-START[Dependencies]
080        // <editor-fold defaultstate="collapsed" desc=" Generated Dependencies ">
081        /**
082         * Gets the {@code <Locale>} dependency.
083         * <p>
084         *   This method returns the {@code <default>} object of the {@code <java.util.Locale>} specification at specification level 1.1.
085         *   That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.
086         * </p>
087         * <dl>
088         *   <dt><b>Final:</b></dt><dd>No</dd>
089         * </dl>
090         * @return The {@code <Locale>} dependency.
091         * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
092         */
093        @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2" )
094        private java.util.Locale getLocale()
095        {
096            final java.util.Locale _d = (java.util.Locale) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Locale" );
097            assert _d != null : "'Locale' dependency not found.";
098            return _d;
099        }
100        /**
101         * Gets the {@code <Logger>} dependency.
102         * <p>
103         *   This method returns any available object of the {@code <org.jomc.logging.Logger>} specification at specification level 1.0.
104         *   That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.
105         * </p>
106         * <p><strong>Properties:</strong>
107         *   <table border="1" width="100%" cellpadding="3" cellspacing="0">
108         *     <tr class="TableSubHeadingColor">
109         *       <th align="left" scope="col" nowrap><b>Name</b></th>
110         *       <th align="left" scope="col" nowrap><b>Type</b></th>
111         *       <th align="left" scope="col" nowrap><b>Documentation</b></th>
112         *     </tr>
113         *     <tr class="TableRow">
114         *       <td align="left" valign="top" nowrap>{@code <name>}</td>
115         *       <td align="left" valign="top" nowrap>{@code java.lang.String}</td>
116         *       <td align="left" valign="top"></td>
117         *     </tr>
118         *   </table>
119         * </p>
120         * <dl>
121         *   <dt><b>Final:</b></dt><dd>No</dd>
122         * </dl>
123         * @return Implementation tests are performed with.
124         * {@code null} if no object is available.
125         * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
126         */
127        @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2" )
128        private org.jomc.logging.Logger getLogger()
129        {
130            return (org.jomc.logging.Logger) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Logger" );
131        }
132        // </editor-fold>
133        // SECTION-END
134        // SECTION-START[Properties]
135        // SECTION-END
136        // SECTION-START[Messages]
137        // <editor-fold defaultstate="collapsed" desc=" Generated Messages ">
138        /**
139         * Gets the text of the {@code <Test Implementation Not Found Message>} message.
140         * <p><dl>
141         *   <dt><b>Languages:</b></dt>
142         *     <dd>English (default)</dd>
143         *     <dd>Deutsch</dd>
144         *   <dt><b>Final:</b></dt><dd>Yes</dd>
145         * </dl></p>
146         * @param locale The locale of the message to return.
147         * @return The text of the {@code <Test Implementation Not Found Message>} message for {@code locale}.
148         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
149         */
150        @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2" )
151        private String getTestImplementationNotFoundMessage( final java.util.Locale locale )
152        {
153            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Test Implementation Not Found Message", locale );
154            assert _m != null : "'Test Implementation Not Found Message' message not found.";
155            return _m;
156        }
157        // </editor-fold>
158        // SECTION-END
159    }