blob: 69062d22dea9534a29c3ffb291b4b59dbdc62a3e (
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
43
44
45
46
47
48
49
50
51
52
53
|
/*******************************************************************************
* Copyright (c) 2001, 2007 Oracle 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:
* Oracle Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.jsf.common.metadata.tests;
import org.eclipse.jst.jsf.common.metadata.Entity;
import org.eclipse.jst.jsf.common.metadata.IncludeEntityGroup;
import org.eclipse.jst.jsf.common.metadata.internal.TaglibDomainMetaDataModelContextImpl;
import org.eclipse.jst.jsf.common.metadata.query.ITaglibDomainMetaDataModelContext;
import org.eclipse.jst.jsf.common.metadata.query.TaglibDomainMetaDataQueryHelper;
public class IncludeEntityGroupImplTests extends AbstractBaseMetaDataTestCase {
protected ITaglibDomainMetaDataModelContext baseContext;
IncludeEntityGroup group;
public void setUp() throws Exception {
super.setUp();
baseContext = new TaglibDomainMetaDataModelContextImpl(domain, project, baseTestUri);
Entity entity = TaglibDomainMetaDataQueryHelper.getEntity(baseContext, "loaded");
assertNotNull(entity);
group = (IncludeEntityGroup)entity.getIncludeGroups().get(0);
}
public void testGetId() {
assertEquals("eg2", group.getId());
}
public void testSetId() {
String id = group.getId();
group.setId("new");
assertEquals("new",group.getId());
group.setId(id);
}
public void testGetModelUri() {
assertNull(group.getModelUri());
}
public void testSetModelUri() {
String uri = null;
group.setModelUri("new");
assertEquals("new",group.getModelUri());
group.setModelUri(uri);
}
}
|