@@ -124,7 +124,8 @@ public void testUpdateNote() throws Exception {
124
124
125
125
Note .Builder builder = Note .newBuilder (noteObj );
126
126
builder .setShortDescription (descriptionText );
127
- Samples .updateNote (client , builder .build (), noteId , PROJECT_ID );
127
+ Note returned = Samples .updateNote (client , builder .build (), noteId , PROJECT_ID );
128
+ assertEquals (descriptionText , returned .getShortDescription ());
128
129
129
130
Note updated = Samples .getNote (client , noteId , PROJECT_ID );
130
131
assertEquals (descriptionText , updated .getShortDescription ());
@@ -169,12 +170,13 @@ public void testUpdateOccurrence() throws Exception {
169
170
d .setType (typeId );
170
171
b .setVulnerability (d );
171
172
172
- Samples .updateOccurrence (client , o .getName (), b .build ());
173
- Occurrence o2 = Samples .getOccurrence (client , o .getName ());
174
- assertEquals (typeId , o2 .getVulnerability ().getType ());
173
+ Occurrence returned = Samples .updateOccurrence (client , o .getName (), b .build ());
174
+ assertEquals (typeId , returned .getVulnerability ().getType ());
175
+ Occurrence got = Samples .getOccurrence (client , o .getName ());
176
+ assertEquals (typeId , got .getVulnerability ().getType ());
175
177
176
178
//clean up
177
- Samples .deleteOccurrence (client , o2 .getName ());
179
+ Samples .deleteOccurrence (client , o .getName ());
178
180
}
179
181
180
182
@ Test
0 commit comments