diff options
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/prov/tests/download/DownloadManagerTest.java')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/prov/tests/download/DownloadManagerTest.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/prov/tests/download/DownloadManagerTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/prov/tests/download/DownloadManagerTest.java new file mode 100644 index 000000000..f6e579e84 --- /dev/null +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/prov/tests/download/DownloadManagerTest.java @@ -0,0 +1,32 @@ +/******************************************************************************* + * Copyright (c) 2007 IBM Corporation 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: IBM Corporation - initial API and implementation + ******************************************************************************/ +package org.eclipse.equinox.prov.tests.download; + +import junit.framework.*; +import org.eclipse.core.runtime.IStatus; +import org.eclipse.equinox.prov.download.DownloadManager; + +/** + * Simple tests of {@link DownloadManager} API. + */ +public class DownloadManagerTest extends TestCase { + public static Test suite() { + return new TestSuite(DownloadManagerTest.class); + } + + /** + * Tests invocation of DownloadManager when there is nothing to download. + */ + public void testEmpty() { + DownloadManager manager = new DownloadManager(); + IStatus result = manager.start(null); + assertTrue("1.0", result.isOK()); + } + +} |