forked from eclipse-edc/Connector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce factory methods to provide object dependencies (eclipse-edc…
- Loading branch information
1 parent
9282a7d
commit 013dcec
Showing
87 changed files
with
1,935 additions
and
499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...est/java/org/eclipse/dataspaceconnector/core/TypeManagerDependencyInjectionExtension.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright (c) 2020 - 2022 Microsoft Corporation | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Contributors: | ||
* Microsoft Corporation - initial API and implementation | ||
* | ||
*/ | ||
|
||
package org.eclipse.dataspaceconnector.core; | ||
|
||
import org.eclipse.dataspaceconnector.junit.launcher.DependencyInjectionExtension; | ||
import org.eclipse.dataspaceconnector.spi.types.TypeManager; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import static org.mockito.Mockito.spy; | ||
|
||
// needed for one particular test, to be able to verify on the TypeManager. | ||
public class TypeManagerDependencyInjectionExtension extends DependencyInjectionExtension { | ||
@Override | ||
protected @NotNull TypeManager createTypeManager() { | ||
return spy(new TypeManager()); | ||
} | ||
} |
Oops, something went wrong.