Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 26ed691d62408cd9a45002203dd97bc836f85383 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*******************************************************************************
 * Copyright (c) 2005, 2006 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.team.tests.core;

import junit.framework.Test;

import org.eclipse.core.runtime.Platform;
import org.eclipse.team.core.Team;
import org.eclipse.team.core.mapping.IStorageMerger;

public class StorageMergerTests extends TeamTest {

	public StorageMergerTests() {
		super();
	}

	public StorageMergerTests(String name) {
		super(name);
	}

	public static Test suite() {
		return suite(StorageMergerTests.class);
	}

	public void testGetByExtension() {
		IStorageMerger merger = new Team().createStorageMerger("blah");
		assertNotNull("Merger for extension is missing", merger);
	}

	public void testGetByContentType() {
		IStorageMerger merger = new Team().createStorageMerger(Platform.getContentTypeManager().getContentType("org.eclipse.team.tests.core.content-type1"));
		assertNotNull("Merger for extension is missing", merger);
	}
}

Back to the top