当前位置: 首页>>代码示例>>Java>>正文


Java TestParameters类代码示例

本文整理汇总了Java中org.apache.chemistry.opencmis.tck.impl.TestParameters的典型用法代码示例。如果您正苦于以下问题:Java TestParameters类的具体用法?Java TestParameters怎么用?Java TestParameters使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TestParameters类属于org.apache.chemistry.opencmis.tck.impl包,在下文中一共展示了TestParameters类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: before

import org.apache.chemistry.opencmis.tck.impl.TestParameters; //导入依赖的package包/类
@Before
public void before() throws Exception
{
       //see REPO-1524	
       Dialect dialect = (Dialect) applicationContext.getBean("dialect");
       assumeFalse(dialect instanceof AlfrescoOracle9Dialect);

	int port = getTestFixture().getJettyComponent().getPort();
	TestNetwork network = getTestFixture().getRandomNetwork();
   	Map<String, String> cmisParameters = new HashMap<String, String>();
   	cmisParameters.put(TestParameters.DEFAULT_RELATIONSHIP_TYPE, "R:cm:replaces");
       cmisParameters.put(TestParameters.DEFAULT_SECONDARY_TYPE, "P:cm:author");
       cmisParameters.put(TestParameters.DEFAULT_ITEM_TYPE, "I:cm:cmobject");
   	clientContext = new OpenCMISClientContext(BindingType.BROWSER,
   			MessageFormat.format(CMIS_URL, "localhost", String.valueOf(port), "alfresco", network.getId(), "public"),
   			"[email protected]" + network.getId(), "admin", cmisParameters, getTestFixture().getJettyComponent().getApplicationContext());
       overrideVersionableAspectProperties(getTestFixture().getJettyComponent().getApplicationContext());
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:19,代码来源:TestPublicApiBrowser11TCK.java

示例2: before

import org.apache.chemistry.opencmis.tck.impl.TestParameters; //导入依赖的package包/类
@Before
public void before() throws Exception
{
       //see REPO-1524	
       Dialect dialect = (Dialect) applicationContext.getBean("dialect");
       assumeFalse(dialect instanceof AlfrescoOracle9Dialect); 

	int port = getTestFixture().getJettyComponent().getPort();
	TestNetwork network = getTestFixture().getRandomNetwork();
   	Map<String, String> cmisParameters = new HashMap<String, String>();
   	cmisParameters.put(TestParameters.DEFAULT_RELATIONSHIP_TYPE, "R:cm:replaces");
       cmisParameters.put(TestParameters.DEFAULT_SECONDARY_TYPE, "P:cm:author");
       cmisParameters.put(TestParameters.DEFAULT_ITEM_TYPE, "I:cm:cmobject");
   	clientContext = new OpenCMISClientContext(BindingType.ATOMPUB,
   			MessageFormat.format(CMIS_URL, "localhost", String.valueOf(port), "alfresco", network.getId(), "public"),
   			"[email protected]" + network.getId(), "admin", cmisParameters, getTestFixture().getJettyComponent().getApplicationContext());
       overrideVersionableAspectProperties(getTestFixture().getJettyComponent().getApplicationContext());
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:19,代码来源:TestPublicApiAtomPub11TCK.java

示例3: before

import org.apache.chemistry.opencmis.tck.impl.TestParameters; //导入依赖的package包/类
@Before
public void before() throws Exception
{
       //see REPO-1524	
       Dialect dialect = (Dialect) applicationContext.getBean("dialect");
       assumeFalse(dialect instanceof AlfrescoOracle9Dialect);

	int port = getTestFixture().getJettyComponent().getPort();
	TestNetwork network = getTestFixture().getRandomNetwork();
   	Map<String, String> cmisParameters = new HashMap<String, String>();
   	cmisParameters.put(TestParameters.DEFAULT_RELATIONSHIP_TYPE, "R:cm:replaces");
   	clientContext = new OpenCMISClientContext(BindingType.ATOMPUB,
   			MessageFormat.format(CMIS_URL, "localhost", String.valueOf(port), "alfresco", network.getId(), "public"),
   			"[email protected]" + network.getId(), "admin", cmisParameters, getTestFixture().getJettyComponent().getApplicationContext());
       overrideVersionableAspectProperties(getTestFixture().getJettyComponent().getApplicationContext());
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:17,代码来源:TestPublicApiAtomPub10TCK.java

示例4: setup

import org.apache.chemistry.opencmis.tck.impl.TestParameters; //导入依赖的package包/类
@Before
public void setup() throws Exception
{
	JettyComponent jetty = getTestFixture().getJettyComponent();
	
	final SearchService searchService = (SearchService)jetty.getApplicationContext().getBean("searchService");;
	final NodeService nodeService = (NodeService)jetty.getApplicationContext().getBean("nodeService");
	final FileFolderService fileFolderService = (FileFolderService)jetty.getApplicationContext().getBean("fileFolderService");
	final NamespaceService namespaceService = (NamespaceService)jetty.getApplicationContext().getBean("namespaceService");
	final TransactionService transactionService = (TransactionService)jetty.getApplicationContext().getBean("transactionService");
	final String name = "abc" + System.currentTimeMillis();

	transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback<Void>()
	{
		@Override
		public Void execute() throws Throwable
		{
			AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getAdminUserName());

               Repository repositoryHelper = (Repository)jetty.getApplicationContext().getBean("repositoryHelper");
			NodeRef companyHome = repositoryHelper.getCompanyHome();
			fileFolderService.create(companyHome, name, ContentModel.TYPE_FOLDER).getNodeRef();

			return null;
		}
	}, false, true);

   	int port = jetty.getPort();
   	Map<String, String> cmisParameters = new HashMap<String, String>();
   	cmisParameters.put(TestParameters.DEFAULT_RELATIONSHIP_TYPE, "R:cm:replaces");
   	cmisParameters.put(TestParameters.DEFAULT_TEST_FOLDER_PARENT, "/" + name);
   	clientContext = new OpenCMISClientContext(BindingType.ATOMPUB,
   			MessageFormat.format(CMIS_URL, "localhost", String.valueOf(port), "alfresco"), "admin", "admin", cmisParameters, jetty.getApplicationContext());

       overrideVersionableAspectProperties(jetty.getApplicationContext());
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:37,代码来源:TestEnterpriseAtomPubTCK.java

示例5: before

import org.apache.chemistry.opencmis.tck.impl.TestParameters; //导入依赖的package包/类
@Before
public void before() throws Exception
{
	int port = getTestFixture().getJettyComponent().getPort();
	TestNetwork network = getTestFixture().getRandomNetwork();
   	Map<String, String> cmisParameters = new HashMap<String, String>();
   	cmisParameters.put(TestParameters.DEFAULT_RELATIONSHIP_TYPE, "R:cm:replaces");
       cmisParameters.put(TestParameters.DEFAULT_SECONDARY_TYPE, "P:cm:author");
       cmisParameters.put(TestParameters.DEFAULT_ITEM_TYPE, "I:cm:cmobject");
   	clientContext = new OpenCMISClientContext(BindingType.BROWSER,
   			MessageFormat.format(CMIS_URL, "localhost", String.valueOf(port), "alfresco", network.getId(), "public"),
   			"[email protected]" + network.getId(), "admin", cmisParameters, getTestFixture().getJettyComponent().getApplicationContext());
       overrideVersionableAspectProperties(getTestFixture().getJettyComponent().getApplicationContext());
}
 
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:15,代码来源:TestPublicApiBrowser11TCK.java

示例6: before

import org.apache.chemistry.opencmis.tck.impl.TestParameters; //导入依赖的package包/类
@Before
public void before() throws Exception
{
	int port = getTestFixture().getJettyComponent().getPort();
	TestNetwork network = getTestFixture().getRandomNetwork();
   	Map<String, String> cmisParameters = new HashMap<String, String>();
   	cmisParameters.put(TestParameters.DEFAULT_RELATIONSHIP_TYPE, "R:cm:replaces");
       cmisParameters.put(TestParameters.DEFAULT_SECONDARY_TYPE, "P:cm:author");
       cmisParameters.put(TestParameters.DEFAULT_ITEM_TYPE, "I:cm:cmobject");
   	clientContext = new OpenCMISClientContext(BindingType.ATOMPUB,
   			MessageFormat.format(CMIS_URL, "localhost", String.valueOf(port), "alfresco", network.getId(), "public"),
   			"[email protected]" + network.getId(), "admin", cmisParameters, getTestFixture().getJettyComponent().getApplicationContext());
       overrideVersionableAspectProperties(getTestFixture().getJettyComponent().getApplicationContext());
}
 
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:15,代码来源:TestPublicApiAtomPub11TCK.java

示例7: setup

import org.apache.chemistry.opencmis.tck.impl.TestParameters; //导入依赖的package包/类
@Before
public void setup() throws Exception
{
	JettyComponent jetty = getTestFixture().getJettyComponent();
	
	final SearchService searchService = (SearchService)jetty.getApplicationContext().getBean("searchService");;
	final NodeService nodeService = (NodeService)jetty.getApplicationContext().getBean("nodeService");
	final FileFolderService fileFolderService = (FileFolderService)jetty.getApplicationContext().getBean("fileFolderService");
	final NamespaceService namespaceService = (NamespaceService)jetty.getApplicationContext().getBean("namespaceService");
	final TransactionService transactionService = (TransactionService)jetty.getApplicationContext().getBean("transactionService");
	final String name = "abc" + System.currentTimeMillis();

	transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback<Void>()
	{
		@Override
		public Void execute() throws Throwable
		{
			AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getAdminUserName());

			NodeRef companyHome = getCompanyHome(nodeService, searchService, namespaceService);
			fileFolderService.create(companyHome, name, ContentModel.TYPE_FOLDER).getNodeRef();

			return null;
		}
	}, false, true);

   	int port = jetty.getPort();
   	Map<String, String> cmisParameters = new HashMap<String, String>();
   	cmisParameters.put(TestParameters.DEFAULT_RELATIONSHIP_TYPE, "R:cm:replaces");
   	cmisParameters.put(TestParameters.DEFAULT_TEST_FOLDER_PARENT, "/" + name);
   	clientContext = new OpenCMISClientContext(BindingType.ATOMPUB,
   			MessageFormat.format(CMIS_URL, "localhost", String.valueOf(port), "alfresco"), "admin", "admin", cmisParameters, jetty.getApplicationContext());

       overrideVersionableAspectProperties(jetty.getApplicationContext());
}
 
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:36,代码来源:TestEnterpriseAtomPubTCK.java

示例8: before

import org.apache.chemistry.opencmis.tck.impl.TestParameters; //导入依赖的package包/类
@Before
public void before() throws Exception
{
	int port = getTestFixture().getJettyComponent().getPort();
	TestNetwork network = getTestFixture().getRandomNetwork();
   	Map<String, String> cmisParameters = new HashMap<String, String>();
   	cmisParameters.put(TestParameters.DEFAULT_RELATIONSHIP_TYPE, "R:cm:replaces");
   	clientContext = new OpenCMISClientContext(BindingType.ATOMPUB,
   			MessageFormat.format(CMIS_URL, "localhost", String.valueOf(port), "alfresco", network.getId(), "public"),
   			"[email protected]" + network.getId(), "admin", cmisParameters, getTestFixture().getJettyComponent().getApplicationContext());
       overrideVersionableAspectProperties(getTestFixture().getJettyComponent().getApplicationContext());
}
 
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:13,代码来源:TestPublicApiAtomPub10TCK.java


注:本文中的org.apache.chemistry.opencmis.tck.impl.TestParameters类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。