diff options
author | Stephan Herrmann | 2019-04-14 21:36:28 +0000 |
---|---|---|
committer | Stephan Herrmann | 2019-04-16 19:47:34 +0000 |
commit | fcfd0b7a8086bb7c045999dbfed0f02e4bf593f0 (patch) | |
tree | 6390925d4065e3a2a37d15307dec20c239bea256 | |
parent | 4ad99f00ee00beeb13d5007c6dc3cc9baeaaba35 (diff) | |
download | eclipse.jdt.core-fcfd0b7a8086bb7c045999dbfed0f02e4bf593f0.tar.gz eclipse.jdt.core-fcfd0b7a8086bb7c045999dbfed0f02e4bf593f0.tar.xz eclipse.jdt.core-fcfd0b7a8086bb7c045999dbfed0f02e4bf593f0.zip |
Bug 546410 - [12][test] ASTStructuralPropertyTest needs an update after
addition of SwitchExpression
Change-Id: I36767e628c16a4c12b7fcac784d4c70268b7a946
-rw-r--r-- | org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTStructuralPropertyTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTStructuralPropertyTest.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTStructuralPropertyTest.java index b597712d46..85f3f50061 100644 --- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTStructuralPropertyTest.java +++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTStructuralPropertyTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2017 IBM Corporation and others. + * Copyright (c) 2004, 2019 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -359,7 +359,7 @@ public class ASTStructuralPropertyTest extends org.eclipse.jdt.core.tests.junit. Set classes = new HashSet(100); // make sure node types are contiguous starting at 0 int hi = 0; - for (int nodeType = 1; nodeType < 100; nodeType++) { + for (int nodeType = 1; nodeType < 110; nodeType++) { try { Class nodeClass = ASTNode.nodeClassForType(nodeType); assertTrue(ASTNode.class.isAssignableFrom(nodeClass)); @@ -372,7 +372,7 @@ public class ASTStructuralPropertyTest extends org.eclipse.jdt.core.tests.junit. // oops - guess that's not valid } } - assertEquals("Wrong last known type", 99, hi); // last known one + assertEquals("Wrong last known type", 100, hi); // last known one assertEquals("Wrong number of distinct types", hi, classes.size()); // all classes are distinct } } |