@@ -133,7 +133,7 @@ public void testUpdateNote() throws Exception {
133
133
@ Test
134
134
public void testCreateOccurrence () throws Exception {
135
135
136
- Occurrence o = Samples .createOccurrence (client , imageUrl , noteId , PROJECT_ID );
136
+ Occurrence o = Samples .createOccurrence (client , imageUrl , noteId , PROJECT_ID , PROJECT_ID );
137
137
Occurrence retrieved = Samples .getOccurrence (client , o .getName ());
138
138
assertEquals (o .getName (), retrieved .getName ());
139
139
@@ -144,7 +144,7 @@ public void testCreateOccurrence() throws Exception {
144
144
@ Test
145
145
public void testDeleteOccurrence () throws Exception {
146
146
147
- Occurrence o = Samples .createOccurrence (client , imageUrl , noteId , PROJECT_ID );
147
+ Occurrence o = Samples .createOccurrence (client , imageUrl , noteId , PROJECT_ID , PROJECT_ID );
148
148
String occName = o .getName ();
149
149
150
150
Samples .deleteOccurrence (client , occName );
@@ -162,7 +162,7 @@ public void testDeleteOccurrence() throws Exception {
162
162
public void testUpdateOccurrence () throws Exception {
163
163
String typeId = "newType" ;
164
164
165
- Occurrence o = Samples .createOccurrence (client , imageUrl , noteId , PROJECT_ID );
165
+ Occurrence o = Samples .createOccurrence (client , imageUrl , noteId , PROJECT_ID , PROJECT_ID );
166
166
167
167
Occurrence .Builder b = Occurrence .newBuilder (o );
168
168
Details .Builder d = Details .newBuilder ();
@@ -182,7 +182,7 @@ public void testOccurrencesForImage() throws Exception {
182
182
int newCount ;
183
183
int tries = 0 ;
184
184
int origCount = Samples .getOccurrencesForImage (client , imageUrl , PROJECT_ID );
185
- final Occurrence o = Samples .createOccurrence (client , imageUrl , noteId , PROJECT_ID );
185
+ final Occurrence o = Samples .createOccurrence (client , imageUrl , noteId , PROJECT_ID , PROJECT_ID );
186
186
do {
187
187
newCount = Samples .getOccurrencesForImage (client , imageUrl , PROJECT_ID );
188
188
sleep (SLEEP_TIME );
@@ -200,7 +200,7 @@ public void testOccurrencesForNote() throws Exception {
200
200
int newCount ;
201
201
int tries = 0 ;
202
202
int origCount = Samples .getOccurrencesForNote (client , noteId , PROJECT_ID );
203
- final Occurrence o = Samples .createOccurrence (client , imageUrl , noteId , PROJECT_ID );
203
+ final Occurrence o = Samples .createOccurrence (client , imageUrl , noteId , PROJECT_ID , PROJECT_ID );
204
204
do {
205
205
newCount = Samples .getOccurrencesForNote (client , noteId , PROJECT_ID );
206
206
sleep (SLEEP_TIME );
@@ -235,7 +235,7 @@ public void testPubSub() throws Exception {
235
235
// now, we can test adding 3 more occurrences
236
236
int endVal = startVal + 3 ;
237
237
for (int i = startVal ; i <= endVal ; i ++) {
238
- Occurrence o = Samples .createOccurrence (client , imageUrl , noteId , PROJECT_ID );
238
+ Occurrence o = Samples .createOccurrence (client , imageUrl , noteId , PROJECT_ID , PROJECT_ID );
239
239
System .out .println ("CREATED: " + o .getName ());
240
240
tries = 0 ;
241
241
do {
0 commit comments