Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NetBeans
Apache NetBeans
Commits
cd63747e
Commit
cd63747e
authored
Feb 12, 2021
by
Jaroslav Tulach
Browse files
Check just a few well known clusters
parent
fa85b517
Changes
1
Hide whitespace changes
Inline
Side-by-side
java/java.lsp.server/vscode/src/test/suite/extension.test.ts
View file @
cd63747e
...
...
@@ -42,8 +42,28 @@ suite('Extension Test Suite', () => {
let
clusters
=
myExtension
.
findClusters
(
'
non-existent
'
).
// ignore 'extra' cluster in the extension path, since nbjavac is there during development:
filter
(
s
=>
!
s
.
startsWith
(
extraCluster
));
assert
.
strictEqual
(
clusters
.
length
,
6
,
'
six required clusters found:
'
+
clusters
);
for
(
let
c
of
clusters
)
{
let
found
:
string
[]
=
[];
function
assertCluster
(
name
:
string
)
{
for
(
let
c
of
clusters
)
{
if
(
c
.
endsWith
(
'
/
'
+
name
))
{
found
.
push
(
c
);
return
;
}
}
assert
.
fail
(
`Cannot find
${
name
}
among
${
clusters
}
`
);
}
assertCluster
(
'
extide
'
);
assertCluster
(
'
ide
'
);
assertCluster
(
'
java
'
);
assertCluster
(
'
nbcode
'
);
assertCluster
(
'
platform
'
);
assertCluster
(
'
webcommon
'
);
assertCluster
(
'
harness
'
);
for
(
let
c
of
found
)
{
assert
.
ok
(
c
.
startsWith
(
nbcode
.
extensionPath
),
`All extensions are below
${
nbcode
.
extensionPath
}
, but:
${
c
}
`
);
}
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment