Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ipaaca
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Social Cognitive Systems
ipaaca
Commits
76748278
Commit
76748278
authored
10 years ago
by
Hendrik Buschmeier
Browse files
Options
Downloads
Patches
Plain Diff
Fixed channel initialisation in InputBuffer, InputBuffer unittest.
parent
53f8eb10
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ipaacalib/java/src/ipaaca/InputBuffer.java
+2
-1
2 additions, 1 deletion
ipaacalib/java/src/ipaaca/InputBuffer.java
ipaacalib/java/test/src/ipaaca/InputBufferTest.java
+3
-3
3 additions, 3 deletions
ipaacalib/java/test/src/ipaaca/InputBufferTest.java
with
5 additions
and
4 deletions
ipaacalib/java/src/ipaaca/InputBuffer.java
+
2
−
1
View file @
76748278
...
...
@@ -139,11 +139,12 @@ public class InputBuffer extends Buffer
String
shortIDName
=
getUniqueShortName
();
uniqueName
=
"/ipaaca/component/"
+
shortIDName
+
"/IB"
;
this
.
channel
=
ipaaca_channel
;
for
(
String
cat
:
categoryInterests
)
{
createCategoryListenerIfNeeded
(
cat
);
}
this
.
channel
=
ipaaca_channel
;
// add own uuid as identifier for hidden channel. (dlw)
createCategoryListenerIfNeeded
(
shortIDName
);
...
...
This diff is collapsed.
Click to expand it.
ipaacalib/java/test/src/ipaaca/InputBufferTest.java
+
3
−
3
View file @
76748278
...
...
@@ -22,7 +22,7 @@ import com.google.common.collect.ImmutableSet;
public
class
InputBufferTest
{
private
static
final
String
COMPID
=
"Comp1"
;
private
static
final
String
CATEGORY
=
"
category1
"
;
private
static
final
String
CATEGORY
=
"
testcat
"
;
private
InputBuffer
inBuffer
;
...
...
@@ -47,10 +47,10 @@ public class InputBufferTest
@Test
public
void
testHandleRemotePushEvent
()
throws
RSBException
,
InterruptedException
{
Informer
<
Object
>
informer
=
Factory
.
getInstance
().
createInformer
(
"/ipaaca/category/"
+
CATEGORY
);
Informer
<
Object
>
informer
=
Factory
.
getInstance
().
createInformer
(
"/ipaaca/
channel/default/
category/"
+
CATEGORY
);
informer
.
activate
();
RemotePushIU
iu
=
new
RemotePushIU
(
"uid1"
);
iu
.
setCategory
(
"/ipaaca/category/"
+
CATEGORY
);
iu
.
setCategory
(
"/ipaaca/
channel/default/
category/"
+
CATEGORY
);
iu
.
setOwnerName
(
"owner"
);
iu
.
setReadOnly
(
false
);
iu
.
setRevision
(
1
);
...
...
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