comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/RootNodeTest.java @ 11903:df1d665ca846

Truffle; remove uses of Node() constructor in test code
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Sun, 06 Oct 2013 19:53:00 -0700
parents 5e3d1a68664e
children 2ed720ce9273
comparison
equal deleted inserted replaced
11901:61767ccd4600 11903:df1d665ca846
1 /* 1 /*
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 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 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
57 Assert.assertEquals(42, result); 57 Assert.assertEquals(42, result);
58 } 58 }
59 59
60 class TestRootNode extends RootNode { 60 class TestRootNode extends RootNode {
61 61
62 public TestRootNode() {
63 super(null);
64 }
65
62 @Override 66 @Override
63 public Object execute(VirtualFrame frame) { 67 public Object execute(VirtualFrame frame) {
64 return 42; 68 return 42;
65 } 69 }
66 } 70 }