"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "junit-platform-engine/src/test/java/org/junit/platform/engine/test/TestEngineSpy.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.

TestEngineSpy.java  (junit5-r5.3.2):TestEngineSpy.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.platform.engine.test; package org.junit.platform.fakes;
import org.junit.platform.engine.EngineDiscoveryRequest; import org.junit.platform.engine.EngineDiscoveryRequest;
import org.junit.platform.engine.ExecutionRequest; import org.junit.platform.engine.ExecutionRequest;
import org.junit.platform.engine.TestDescriptor; import org.junit.platform.engine.TestDescriptor;
import org.junit.platform.engine.TestEngine; import org.junit.platform.engine.TestEngine;
import org.junit.platform.engine.UniqueId; import org.junit.platform.engine.UniqueId;
/** /**
* @since 1.0 * @since 1.4
*/ */
public class TestEngineSpy implements TestEngine { public class TestEngineSpy implements TestEngine {
public static final String ID = TestEngineSpy.class.getSimpleName(); public static final String ID = TestEngineSpy.class.getSimpleName();
public EngineDiscoveryRequest discoveryRequestForDiscovery; public EngineDiscoveryRequest discoveryRequestForDiscovery;
public UniqueId uniqueIdForDiscovery; public UniqueId uniqueIdForDiscovery;
public ExecutionRequest requestForExecution; public ExecutionRequest requestForExecution;
@Override @Override
skipping to change at line 51 skipping to change at line 51
TestDescriptorStub engineDescriptor = new TestDescriptorStub(engi neUniqueId, ID); TestDescriptorStub engineDescriptor = new TestDescriptorStub(engi neUniqueId, ID);
TestDescriptorStub testDescriptor = new TestDescriptorStub(engine UniqueId.append("test", "test"), "test"); TestDescriptorStub testDescriptor = new TestDescriptorStub(engine UniqueId.append("test", "test"), "test");
engineDescriptor.addChild(testDescriptor); engineDescriptor.addChild(testDescriptor);
return engineDescriptor; return engineDescriptor;
} }
@Override @Override
public void execute(ExecutionRequest request) { public void execute(ExecutionRequest request) {
this.requestForExecution = request; this.requestForExecution = request;
} }
} }
 End of changes. 4 change blocks. 
3 lines changed or deleted 4 lines changed or added

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