01: /*******************************************************************************
02: * Copyright (c) 2006 Brad Reynolds and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * Brad Reynolds - initial API and implementation
10: ******************************************************************************/package org.eclipse.jface.tests.databinding.viewers;
11:
12: import junit.framework.TestCase;
13:
14: import org.eclipse.jface.databinding.swt.SWTObservables;
15: import org.eclipse.jface.databinding.viewers.ObservableSetContentProvider;
16: import org.eclipse.swt.widgets.Display;
17:
18: /**
19: * @since 3.3
20: *
21: */
22: public class ObservableSetContentProviderTest extends TestCase {
23: public void testKnownElementsRealm() throws Exception {
24: ObservableSetContentProvider contentProvider = new ObservableSetContentProvider();
25: assertSame(
26: "realm for the known elements should be the SWT realm",
27: SWTObservables.getRealm(Display.getDefault()),
28: contentProvider.getKnownElements().getRealm());
29: }
30: }
|