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
0a4c9874
Commit
0a4c9874
authored
17 years ago
by
brinn
Browse files
Options
Downloads
Patches
Plain Diff
minor: formatting
SVN: 4790
parent
198b5374
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
common/sourceTest/java/ch/systemsx/cisd/common/utilities/ClassUtilsTest.java
+25
-8
25 additions, 8 deletions
...ava/ch/systemsx/cisd/common/utilities/ClassUtilsTest.java
with
25 additions
and
8 deletions
common/sourceTest/java/ch/systemsx/cisd/common/utilities/ClassUtilsTest.java
+
25
−
8
View file @
0a4c9874
...
@@ -40,13 +40,30 @@ import org.testng.annotations.Test;
...
@@ -40,13 +40,30 @@ import org.testng.annotations.Test;
*/
*/
public
final
class
ClassUtilsTest
public
final
class
ClassUtilsTest
{
{
private
static
interface
IA
{}
private
static
interface
IA
private
static
interface
IExtendingIA
extends
IA
{}
{
private
static
interface
IB
{}
}
private
static
class
A
{}
private
static
class
ExtendingA
extends
A
implements
IExtendingIA
{}
private
static
interface
IExtendingIA
extends
IA
private
static
class
ExtendingExtendingA
extends
ExtendingA
implements
IB
,
IA
{}
{
}
private
static
interface
IB
{
}
private
static
class
A
{
}
private
static
class
ExtendingA
extends
A
implements
IExtendingIA
{
}
private
static
class
ExtendingExtendingA
extends
ExtendingA
implements
IB
,
IA
{
}
@Test
@Test
public
void
testGatherAllCastableClassesAndInterfacesFor
()
public
void
testGatherAllCastableClassesAndInterfacesFor
()
{
{
...
@@ -60,7 +77,7 @@ public final class ClassUtilsTest
...
@@ -60,7 +77,7 @@ public final class ClassUtilsTest
assertSame
(
IExtendingIA
.
class
,
iterator
.
next
());
assertSame
(
IExtendingIA
.
class
,
iterator
.
next
());
assertSame
(
IA
.
class
,
iterator
.
next
());
assertSame
(
IA
.
class
,
iterator
.
next
());
assertSame
(
IB
.
class
,
iterator
.
next
());
assertSame
(
IB
.
class
,
iterator
.
next
());
assertEquals
(
false
,
iterator
.
hasNext
());
assertEquals
(
false
,
iterator
.
hasNext
());
}
}
...
...
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