/**
 * SAHARA Rig Client
 * 
 * Software abstraction of physical rig to provide rig session control
 * and rig device control. Automatically tests rig hardware and reports
 * the rig status to ensure rig goodness.
 *
 * @license See LICENSE in the top level directory for complete license terms.
 *
 * Copyright (c) 2009, University of Technology, Sydney
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without 
 * modification, are permitted provided that the following conditions are met:
 *
 *  * Redistributions of source code must retain the above copyright notice, 
 *    this list of conditions and the following disclaimer.
 *  * Redistributions in binary form must reproduce the above copyright 
 *    notice, this list of conditions and the following disclaimer in the 
 *    documentation and/or other materials provided with the distribution.
 *  * Neither the name of the University of Technology, Sydney nor the names 
 *    of its contributors may be used to endorse or promote products derived from 
 *    this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * @author <First name> <Last name> (mdiponio)
 * @date <day> <month> 2009
 *
 * Changelog:
 * - 02/12/2009 - mdiponio - Initial file creation.
 */
package au.edu.uts.eng.remotelabs.rigclient.type.tests;

import static org.easymock.EasyMock.*;

import static org.junit.Assert.fail;
import junit.framework.TestCase;

import org.junit.Before;
import org.junit.Test;

import au.edu.uts.eng.remotelabs.rigclient.util.IConfig;

/**
 * Tests the rig factory class.
 */
public class RigFactoryTester extends TestCase
{
    /** Mock configuration. */
    private IConfig mockConfig;
    
    /**
     * @throws java.lang.Exception
     */
    @Override
    @Before
    public void setUp() throws Exception
    {
        this.mockConfig = createMock(IConfig.class);
        
    }

    /**
     * Test method for {@link au.edu.uts.eng.remotelabs.rigclient.type.RigFactory#getRigInstance()}.
     */
    @Test
    public void testGetRigInstance()
    {
        fail("Not yet implemented");
    }

}

@@ -2160,11 +2160,19 @@
 ock.
-*;%0A
+createMock;
 %0Aimp
@@ -2190,25 +2190,32 @@
 org.
-junit.Assert.fail
+easymock.EasyMock.expect
 ;%0Aim
@@ -2295,16 +2295,79 @@
 .Test;%0A%0A
+import au.edu.uts.eng.remotelabs.rigclient.util.ConfigFactory;%0A
 import a
@@ -2754,24 +2754,244 @@
 s);%0A        
+expect(this.mockConfig.getProperty(%22Log_Level%22))%0A        %09.andReturn(%22DEBUG%22);%0A        expect(this.mockConfig.getProperty(%22Logger_Type%22))%0A            .andReturn(%22SystemErr%22);%0A        %0A        ConfigFactory.getInstance();
 %0A    %7D%0A%0A    
@@ -3152,24 +3152,33 @@
 nce()%0A    %7B%0A
+        %0A
         fail

Updated the RigFactory test case.