"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "junit-jupiter-engine/src/test/java/org/junit/jupiter/engine/discovery/JupiterUniqueIdBuilder.java" between
junit5-r5.3.2.tar.gz and junit5-r5.4.0.tar.gz

About: JUnit 5 is a unit testing framework for the Java programming language.

JupiterUniqueIdBuilder.java  (junit5-r5.3.2):JupiterUniqueIdBuilder.java  (junit5-r5.4.0)
/* /*
* Copyright 2015-2018 the original author or authors. * Copyright 2015-2019 the original author or authors.
* *
* All rights reserved. This program and the accompanying materials are * All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v2.0 which * made available under the terms of the Eclipse Public License v2.0 which
* accompanies this distribution and is available at * accompanies this distribution and is available at
* *
* http://www.eclipse.org/legal/epl-v20.html * http://www.eclipse.org/legal/epl-v20.html
*/ */
package org.junit.jupiter.engine.discovery; package org.junit.jupiter.engine.discovery;
import org.junit.jupiter.engine.JupiterTestEngine; import org.junit.jupiter.engine.descriptor.JupiterEngineDescriptor;
import org.junit.platform.commons.util.ReflectionUtils; import org.junit.platform.commons.util.ReflectionUtils;
import org.junit.platform.engine.UniqueId; import org.junit.platform.engine.UniqueId;
/** /**
* Test data builder for unique IDs for JupiterTestEngine. * Test data builder for unique IDs for JupiterTestEngine.
* *
* Used to decouple tests from concrete unique ID strings. * Used to decouple tests from concrete unique ID strings.
* *
* @since 5.0 * @since 5.0
*/ */
skipping to change at line 52 skipping to change at line 52
public static UniqueId uniqueIdForTestFactoryMethod(Class<?> clazz, Strin g methodPart) { public static UniqueId uniqueIdForTestFactoryMethod(Class<?> clazz, Strin g methodPart) {
return uniqueIdForClass(clazz).append(TestFactoryMethodResolver.S EGMENT_TYPE, methodPart); return uniqueIdForClass(clazz).append(TestFactoryMethodResolver.S EGMENT_TYPE, methodPart);
} }
public static UniqueId uniqueIdForTestTemplateMethod(Class<?> clazz, Stri ng methodPart) { public static UniqueId uniqueIdForTestTemplateMethod(Class<?> clazz, Stri ng methodPart) {
return uniqueIdForClass(clazz).append(TestTemplateMethodResolver. SEGMENT_TYPE, methodPart); return uniqueIdForClass(clazz).append(TestTemplateMethodResolver. SEGMENT_TYPE, methodPart);
} }
public static UniqueId engineId() { public static UniqueId engineId() {
return UniqueId.forEngine(JupiterTestEngine.ENGINE_ID); return UniqueId.forEngine(JupiterEngineDescriptor.ENGINE_ID);
} }
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)