Debian Codegraph @

junit-jupiter-api/src/testFixtures/java/org/junit/jupiter/api/extension/ExtensionContextParameterResolver.java

raw symbols SCIP
1 /*
2 * Copyright 2015-2024 the original author or authors.
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v2.0 which
6 * accompanies this distribution and is available at
7 *
8 * https://www.eclipse.org/legal/epl-v20.html
9 */
10
11 package org.junit.jupiter.api.extension;
12
13 public class ExtensionContextParameterResolver implements ParameterResolver {
14
15 @Override
16 public boolean supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext)
17 throws ParameterResolutionException {
18 return ExtensionContext.class.equals(parameterContext.getParameter().getType());
19 }
20
21 @Override
22 public Object resolveParameter(ParameterContext parameterContext, ExtensionContext extensionContext)
23 throws ParameterResolutionException {
24 return extensionContext;
25 }
26 }