Mercurial > hg > graal-compiler
comparison visualizer/Data/test/unit/src/com/sun/hotspot/igv/data/GroupTest.java @ 4512:015fb895586b
Moved visualizer to new directory.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 07 Feb 2012 22:41:09 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4511:6cb549627941 | 4512:015fb895586b |
---|---|
1 /* | |
2 * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. | |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
4 * | |
5 * This code is free software; you can redistribute it and/or modify it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |
20 * or visit www.oracle.com if you need additional information or have any | |
21 * questions. | |
22 * | |
23 */ | |
24 | |
25 package com.sun.hotspot.igv.data; | |
26 | |
27 import java.util.Arrays; | |
28 import java.util.HashSet; | |
29 import static org.junit.Assert.assertEquals; | |
30 import org.junit.*; | |
31 | |
32 /** | |
33 * | |
34 * @author Thomas Wuerthinger | |
35 */ | |
36 public class GroupTest { | |
37 | |
38 public GroupTest() { | |
39 } | |
40 | |
41 @BeforeClass | |
42 public static void setUpClass() throws Exception { | |
43 | |
44 } | |
45 | |
46 @AfterClass | |
47 public static void tearDownClass() throws Exception { | |
48 } | |
49 | |
50 @Before | |
51 public void setUp() { | |
52 } | |
53 | |
54 @After | |
55 public void tearDown() { | |
56 } | |
57 | |
58 /** | |
59 * Test of getAllNodes method, of class Group. | |
60 */ | |
61 @Test | |
62 public void testGetAllNodes() { | |
63 final Group g = new Group(null); | |
64 final InputGraph graph1 = new InputGraph("1"); | |
65 final InputGraph graph2 = new InputGraph("2"); | |
66 g.addElement(graph1); | |
67 g.addElement(graph2); | |
68 graph1.addNode(new InputNode(1)); | |
69 graph1.addNode(new InputNode(2)); | |
70 graph2.addNode(new InputNode(2)); | |
71 graph2.addNode(new InputNode(3)); | |
72 assertEquals(g.getAllNodes(), new HashSet(Arrays.asList(1, 2, 3))); | |
73 } | |
74 } |