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: ScopeImplementationTest.java 4588 2012-06-03 06:01:30Z schulte2005 $
032 *
033 */
034// </editor-fold>
035// SECTION-END
036package org.jomc.ri.test;
037
038import org.junit.Test;
039import static org.junit.Assert.assertNull;
040
041// SECTION-START[Documentation]
042// <editor-fold defaultstate="collapsed" desc=" Generated Documentation ">
043/**
044 * Test implementation of the {@code ScopeTestSpecification}.
045 *
046 * <dl>
047 *   <dt><b>Identifier:</b></dt><dd>JOMC :: RI :: Tests :: Scope Implementation Test</dd>
048 *   <dt><b>Name:</b></dt><dd>JOMC :: RI :: Tests :: Scope Implementation Test</dd>
049 *   <dt><b>Specifications:</b></dt>
050 *     <dd>JOMC :: RI :: Tests :: Test Scope Specification Many @ 1.3</dd>
051 *     <dd>JOMC :: RI :: Tests :: Test Scope Specification One :: 1 @ 1.3</dd>
052 *   <dt><b>Abstract:</b></dt><dd>No</dd>
053 *   <dt><b>Final:</b></dt><dd>No</dd>
054 *   <dt><b>Stateless:</b></dt><dd>No</dd>
055 * </dl>
056 *
057 * @author <a href="mailto:schulte2005@users.sourceforge.net">Christian Schulte</a> 1.0
058 * @version 1.3
059 */
060// </editor-fold>
061// SECTION-END
062// SECTION-START[Annotations]
063// <editor-fold defaultstate="collapsed" desc=" Generated Annotations ">
064@javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
065// </editor-fold>
066// SECTION-END
067public class ScopeImplementationTest
068    implements
069    org.jomc.ri.test.support.TestSpecification
070{
071    // SECTION-START[TestSpecification]
072    // SECTION-END
073    // SECTION-START[ScopeImplementationTest]
074
075    @Test
076    public final void testUnsupportedScope() throws Exception
077    {
078        assertNull( this.getTestScopeSpecificationOne() );
079        assertNull( this.getTestScopeSpecificationMany() );
080    }
081
082    // SECTION-END
083    // SECTION-START[Constructors]
084    // <editor-fold defaultstate="collapsed" desc=" Generated Constructors ">
085    /** Creates a new {@code ScopeImplementationTest} instance. */
086    @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
087    public ScopeImplementationTest()
088    {
089        // SECTION-START[Default Constructor]
090        super();
091        // SECTION-END
092    }
093    // </editor-fold>
094    // SECTION-END
095    // SECTION-START[Dependencies]
096    // <editor-fold defaultstate="collapsed" desc=" Generated Dependencies ">
097    /**
098     * Gets the {@code <TestScopeSpecificationMany>} dependency.
099     * <p>
100     *   This method returns any available object of the {@code <JOMC :: RI :: Tests :: Test Scope Specification Many>} specification at specification level 1.3.
101     *   That specification applies to {@code <DOES_NOT_EXIST>} scope. The does_not_exist object is returned whenever requested.
102     * </p>
103     * <dl>
104     *   <dt><b>Final:</b></dt><dd>No</dd>
105     * </dl>
106     * @return The {@code <TestScopeSpecificationMany>} dependency.
107     * {@code null} if no object is available.
108     * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
109     */
110    @SuppressWarnings("unused")
111    @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
112    private org.jomc.ri.test.support.TestSpecification[] getTestScopeSpecificationMany()
113    {
114        return (org.jomc.ri.test.support.TestSpecification[]) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "TestScopeSpecificationMany" );
115    }
116    /**
117     * Gets the {@code <TestScopeSpecificationOne>} dependency.
118     * <p>
119     *   This method returns any available object of the {@code <JOMC :: RI :: Tests :: Test Scope Specification One :: 1>} specification at specification level 1.3.
120     *   That specification applies to {@code <DOES_NOT_EXIST>} scope. The does_not_exist object is returned whenever requested.
121     * </p>
122     * <dl>
123     *   <dt><b>Final:</b></dt><dd>No</dd>
124     * </dl>
125     * @return The {@code <TestScopeSpecificationOne>} dependency.
126     * {@code null} if no object is available.
127     * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
128     */
129    @SuppressWarnings("unused")
130    @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
131    private org.jomc.ri.test.support.TestSpecification getTestScopeSpecificationOne()
132    {
133        return (org.jomc.ri.test.support.TestSpecification) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "TestScopeSpecificationOne" );
134    }
135    // </editor-fold>
136    // SECTION-END
137    // SECTION-START[Properties]
138    // SECTION-END
139    // SECTION-START[Messages]
140    // SECTION-END
141}