1/*******************************************************************************
2 * Copyright (c) 2009, 2015 Mountainminds GmbH & Co. KG and Contributors
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 *    Marc R. Hoffmann - initial API and implementation
10 *
11 *******************************************************************************/
12package org.jacoco.core.internal.analysis;
13
14import static org.jacoco.core.analysis.ICoverageNode.ElementType.SOURCEFILE;
15import static org.junit.Assert.assertEquals;
16
17import org.junit.Test;
18
19/**
20 * Unit test for {@link SourceFileCoverageImpl}.
21 */
22public class SourceFileCoverageImplTest {
23
24	@Test
25	public void testProperties() {
26		SourceFileCoverageImpl data = new SourceFileCoverageImpl("Sample.java",
27				"org/jacoco/examples");
28		assertEquals(SOURCEFILE, data.getElementType());
29		assertEquals("org/jacoco/examples", data.getPackageName());
30	}
31
32}
33