/**
* Copyright (c) 2010 Perforce Software. All rights reserved.
*/
package com.perforce.team.tests.branchgraph.builder;
import com.perforce.team.core.mergequest.builder.DepotPathBranchGraphBuilder;
import com.perforce.team.tests.Utils;
import com.perforce.team.tests.branchgraph.BranchGraphTestPlugin;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
/**
* @author Kevin Sawicki (ksawicki@perforce.com)
*/
public class DepotBuilderTest extends BaseContainerBuilderTest {
/**
* @see com.perforce.team.tests.ProjectBasedTestCase#setUp()
*/
@Override
public void setUp() throws Exception {
super.setUp();
File file = new File(Utils.getBundlePath(BranchGraphTestPlugin
.getDefault().getBundle(), "/resources/sample.xml"));
assertTrue(file.exists());
addFile(project.getFile("sample.xml"), new FileInputStream(file));
}
/**
* Test loading a container from a depot path
*/
public void testLoadDepot() {
DepotPathBranchGraphBuilder builder = new DepotPathBranchGraphBuilder(
createConnection(), "//depot/testbg/sample.xml");
assertNotNull(builder.getContainerFactory());
try {
validateContainer(builder.load());
} catch (IOException e) {
handle(e);
}
}
}
# |
Change |
User |
Description |
Committed |
|
#1
|
15907 |
Matt Attaway |
More house cleaning to match Workshop best practices |
|
|
//guest/perforce_software/p4eclipse/r14.1/src/3.7/plugins/com.perforce.team.mergequest.tests/src/com/perforce/team/tests/branchgraph/builder/DepotBuilderTest.java |
#1
|
12432 |
Matt Attaway |
Initial commit of the 2014.1 P4Eclipse source code. |
|
|