Code Review
/
nonrtric
/
plt
/
sme.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Roll versions after J-Relase (master branch)
[nonrtric/plt/sme.git]
/
capifcore
/
internal
/
publishserviceapi
/
typevalidation_test.go
diff --git
a/capifcore/internal/publishserviceapi/typevalidation_test.go
b/capifcore/internal/publishserviceapi/typevalidation_test.go
index
39e3619
..
d7b59d5
100644
(file)
--- a/
capifcore/internal/publishserviceapi/typevalidation_test.go
+++ b/
capifcore/internal/publishserviceapi/typevalidation_test.go
@@
-39,7
+39,7
@@
func TestValidate(t *testing.T) {
}
}
-func Test
IsService
Published(t *testing.T) {
+func Test
ValidateAlready
Published(t *testing.T) {
apiName := "apiName"
serviceUnderTest := ServiceAPIDescription{
ApiName: apiName,
apiName := "apiName"
serviceUnderTest := ServiceAPIDescription{
ApiName: apiName,
@@
-48,8
+48,8
@@
func TestIsServicePublished(t *testing.T) {
otherService := ServiceAPIDescription{
ApiName: "otherApiName",
}
otherService := ServiceAPIDescription{
ApiName: "otherApiName",
}
- assert.
False(t, serviceUnderTest.Is
Published(otherService))
+ assert.
Nil(t, serviceUnderTest.ValidateAlready
Published(otherService))
otherService.ApiName = apiName
otherService.ApiName = apiName
- assert.
True(t, serviceUnderTest.Is
Published(otherService))
+ assert.
NotNil(t, serviceUnderTest.ValidateAlready
Published(otherService))
}
}