Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
f757ea14
Commit
f757ea14
authored
9 years ago
by
fedoreno
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-2780: js-ignoring fetchOptionsToString components
SVN: 35798
parent
edd891d1
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
js-test/source/java/ch/systemsx/cisd/openbis/jstest/report/V3APIReport.java
+10
-3
10 additions, 3 deletions
...a/ch/systemsx/cisd/openbis/jstest/report/V3APIReport.java
with
10 additions
and
3 deletions
js-test/source/java/ch/systemsx/cisd/openbis/jstest/report/V3APIReport.java
+
10
−
3
View file @
f757ea14
...
...
@@ -26,6 +26,7 @@ import java.util.LinkedList;
import
java.util.List
;
import
java.util.TreeSet
;
import
org.apache.commons.lang.ArrayUtils
;
import
org.reflections.ReflectionUtils
;
import
org.reflections.Reflections
;
import
org.reflections.scanners.ResourcesScanner
;
...
...
@@ -35,6 +36,8 @@ import org.reflections.util.ConfigurationBuilder;
import
org.reflections.util.FilterBuilder
;
import
org.testng.annotations.Test
;
import
ch.systemsx.cisd.common.collection.CollectionUtils
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
...
...
@@ -53,6 +56,10 @@ public class V3APIReport
"ch.ethz.sis.openbis.generic.dssapi.v3"
,
"ch.ethz.sis.openbis.generic.asapi.v3"
};
private
static
final
String
[]
IGNORE_CLASSES
=
{
"ch.ethz.sis.openbis.generic.asapi.v3.dto.common.fetchoptions.FetchOptionsToStringBuilder"
};
@Test
public
void
test
()
throws
Exception
...
...
@@ -92,16 +99,16 @@ public class V3APIReport
Multimap
<
String
,
String
>
map
=
reflections
.
getStore
().
get
(
SubTypesScanner
.
class
);
Collection
<
String
>
nonInnerClassNames
=
Collections2
.
filter
(
map
.
values
(),
new
Predicate
<
String
>()
Collection
<
String
>
nonInner
AndNonIgnored
ClassNames
=
Collections2
.
filter
(
map
.
values
(),
new
Predicate
<
String
>()
{
@Override
public
boolean
apply
(
String
item
)
{
return
false
==
item
.
contains
(
"$"
);
return
false
==
item
.
contains
(
"$"
)
&&
false
==
ArrayUtils
.
contains
(
IGNORE_CLASSES
,
item
)
;
}
});
Collection
<
String
>
uniqueClassNames
=
new
TreeSet
<
String
>(
nonInnerClassNames
);
Collection
<
String
>
uniqueClassNames
=
new
TreeSet
<
String
>(
nonInner
AndNonIgnored
ClassNames
);
Collection
<
Class
<?>>
uniqueClasses
=
ImmutableSet
.
copyOf
(
ReflectionUtils
.
forNames
(
uniqueClassNames
));
for
(
Class
<?>
uniqueClass
:
uniqueClasses
)
...
...
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