Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Legal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
Security and Compliance
Legal
Commits
7d496104
Commit
7d496104
authored
4 years ago
by
Rustam Lotsmanenko (EPAM)
Committed by
Rostislav Dublin (EPAM)
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
GONRG-940
Pass properties to audit event
parent
c6a9111e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
provider/legal-gcp/src/test/java/org/opengroup/osdu/legal/LegalApplicationTests.java
+12
-1
12 additions, 1 deletion
.../java/org/opengroup/osdu/legal/LegalApplicationTests.java
with
12 additions
and
1 deletion
provider/legal-gcp/src/test/java/org/opengroup/osdu/legal/LegalApplicationTests.java
+
12
−
1
View file @
7d496104
...
...
@@ -2,15 +2,26 @@ package org.opengroup.osdu.legal;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.mockito.Mockito
;
import
org.opengroup.osdu.core.common.provider.interfaces.ITenantFactory
;
import
org.opengroup.osdu.legal.di.TenantFactoryService
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.mock.mockito.MockBean
;
import
org.springframework.test.context.junit4.SpringRunner
;
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
public
class
LegalApplicationTests
{
@MockBean
TenantFactoryService
tenantFactoryService
;
@MockBean
ITenantFactory
tenantFactory
;
@Test
public
void
contextLoads
()
{
public
void
contextLoads
()
throws
Exception
{
Mockito
.
when
(
tenantFactoryService
.
getObject
()).
thenReturn
(
tenantFactory
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment