Subversion Repositories DevTools

Rev

Rev 6914 | Rev 7046 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6914 Rev 7033
Line 9... Line 9...
9
import com.erggroup.buildtool.ripple.BuildStandard;
9
import com.erggroup.buildtool.ripple.BuildStandard;
10
import com.erggroup.buildtool.ripple.Package;
10
import com.erggroup.buildtool.ripple.Package;
11
import com.erggroup.buildtool.ripple.ReleaseManager;
11
import com.erggroup.buildtool.ripple.ReleaseManager;
12
import com.erggroup.buildtool.ripple.RippleEngine;
12
import com.erggroup.buildtool.ripple.RippleEngine;
13
 
13
 
14
import org.apache.log4j.Logger;
14
import org.slf4j.Logger;
15
import org.apache.log4j.xml.DOMConfigurator;
15
import org.slf4j.LoggerFactory;
16
import org.junit.Test;
16
import org.junit.Test;
17
import org.junit.runner.JUnitCore;
17
import org.junit.runner.JUnitCore;
18
 
18
 
19
import static org.junit.Assert.*;
19
import static org.junit.Assert.*;
20
 
20
 
21
public class ESCROWBuildTestCase
21
public class ESCROWBuildTestCase
22
{
22
{
23
    private static final Logger mLogger = Logger.getLogger(DaemonBuildTestCase.class);
23
    private static final Logger mLogger = LoggerFactory.getLogger(DaemonBuildTestCase.class);
24
    ReleaseManager              releaseManager = null;
24
    ReleaseManager              releaseManager = null;
25
    RippleEngine                rippleEngine   = null;
25
    RippleEngine                rippleEngine   = null;
26
 
26
 
27
    /**
27
    /**
28
     * constructor
28
     * constructor
Line 36... Line 36...
36
    /**
36
    /**
37
     * Test Case main line
37
     * Test Case main line
38
     */
38
     */
39
    public static void main(String[] args)
39
    public static void main(String[] args)
40
    {
40
    {
41
        DOMConfigurator.configure("utf.xml");
-
 
42
        mLogger.debug("main");
41
        mLogger.debug("main");
43
        JUnitCore.main("com.erggroup.buildtool.utf.ESCROWBuildTestCase");
42
        JUnitCore.main("com.erggroup.buildtool.utf.ESCROWBuildTestCase");
44
    }
43
    }
45
    
44
    
46
    /** Subclass and override key methods so that the test can control
45
    /** Subclass and override key methods so that the test can control
Line 276... Line 275...
276
        
275
        
277
        
276
        
278
        //	Construct a Release Manager and Ripple Builder
277
        //	Construct a Release Manager and Ripple Builder
279
        //	Run the Escrow Engine
278
        //	Run the Escrow Engine
280
        //
279
        //
281
        DOMConfigurator.configure("work/abtd.xml");
-
 
282
        releaseManager = new myReleaseManager("not used", "not used", "not used");
280
        releaseManager = new myReleaseManager("not used", "not used", "not used");
283
        myReleaseManager.mUseDatabase = false;
281
        myReleaseManager.mUseDatabase = false;
284
        rippleEngine = new RippleEngine(releaseManager, 99999, false);
282
        rippleEngine = new RippleEngine(releaseManager, 99999, false);
285
        ESCROWBuild.generateEscrowFiles(rippleEngine, "build");	
283
        ESCROWBuild.generateEscrowFiles(rippleEngine, "build");	
286
    }
284
    }