diff options
author | John Arthorne | 2010-05-03 14:48:23 +0000 |
---|---|---|
committer | John Arthorne | 2010-05-03 14:48:23 +0000 |
commit | 6d168164a98e504a120df624266b8591d8fcb789 (patch) | |
tree | f33d8bf89ed32806a98a157dead812d8fbc103ef /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/RepositorManagerDifferentAgentTest.java | |
parent | a523ae8f6b371199a7b8c9219a9b6e0a23a7b784 (diff) | |
download | rt.equinox.p2-6d168164a98e504a120df624266b8591d8fcb789.tar.gz rt.equinox.p2-6d168164a98e504a120df624266b8591d8fcb789.tar.xz rt.equinox.p2-6d168164a98e504a120df624266b8591d8fcb789.zip |
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/RepositorManagerDifferentAgentTest.java')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/RepositorManagerDifferentAgentTest.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/RepositorManagerDifferentAgentTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/RepositorManagerDifferentAgentTest.java new file mode 100644 index 000000000..665dd3fee --- /dev/null +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/RepositorManagerDifferentAgentTest.java @@ -0,0 +1,35 @@ +/******************************************************************************* + * Copyright (c) 2010 Sonatype and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Sonatype - initial API and implementation + * IBM - ongoing development + *******************************************************************************/ +package org.eclipse.equinox.p2.tests.metadata.repository; + +import java.io.File; +import java.io.IOException; +import java.net.URI; +import org.eclipse.equinox.internal.p2.core.helpers.ServiceHelper; +import org.eclipse.equinox.p2.core.*; +import org.eclipse.equinox.p2.repository.IRepositoryManager; +import org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager; +import org.eclipse.equinox.p2.tests.*; + +public class RepositorManagerDifferentAgentTest extends AbstractProvisioningTest { + + public void testLoadRepo() throws ProvisionException, IOException { + IProvisioningAgentProvider agentProvider = (IProvisioningAgentProvider) ServiceHelper.getService(TestActivator.getContext(), IProvisioningAgentProvider.SERVICE_NAME); + File testLocation = TestData.getFile("ProfilePreferencesTest", "DifferentAgent"); + IProvisioningAgent agent = agentProvider.createAgent(testLocation.toURI()); + IMetadataRepositoryManager mgr = (IMetadataRepositoryManager) agent.getService(IMetadataRepositoryManager.SERVICE_NAME); + URI[] repositories = mgr.getKnownRepositories(IRepositoryManager.REPOSITORIES_ALL); + //HERE WE SHOULD GET MUCH MORE REPOSITORIES THAN THIS. + System.out.println(repositories); + fail(); + } +}
\ No newline at end of file |