File tree 2 files changed +1
-5
lines changed
src/test/java/com/commercetools/sync/products/helpers
2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 12
12
import io .sphere .sdk .products .ProductVariantDraftBuilder ;
13
13
import io .sphere .sdk .products .attributes .AttributeDraft ;
14
14
import org .junit .jupiter .api .BeforeEach ;
15
- import org .junit .jupiter .api .Disabled ;
16
15
import org .junit .jupiter .api .Test ;
17
16
18
17
import java .util .ArrayList ;
@@ -325,7 +324,6 @@ void getProductKeyFromReference_WithoutAProductReference_ShouldReturnEmptyOpt()
325
324
assertThat (result ).isEmpty ();
326
325
}
327
326
328
- @ Disabled ("Fails due to bug on https://github.com/FasterXML/jackson-databind/issues/2442" )
329
327
@ Test
330
328
void getReferencedProductKeysFromSet_WithOnlyNullRefsInSet_ShouldReturnEmptySet () {
331
329
final AttributeDraft productReferenceSetAttribute =
Original file line number Diff line number Diff line change 24
24
import io .sphere .sdk .types .CustomFieldsDraft ;
25
25
import io .sphere .sdk .utils .MoneyImpl ;
26
26
import org .junit .jupiter .api .BeforeEach ;
27
- import org .junit .jupiter .api .Disabled ;
28
27
import org .junit .jupiter .api .Test ;
29
28
30
29
import java .math .BigDecimal ;
@@ -334,7 +333,6 @@ void resolveReferences_WithMixedReferences_ShouldResolveReferenceAttributes() {
334
333
.isEqualTo (Customer .referenceTypeId ());
335
334
}
336
335
337
- @ Disabled ("Fails due to possible bug on https://github.com/FasterXML/jackson-databind/issues/2442" )
338
336
@ Test
339
337
void resolveReferences_WithNullReferenceInSetAttribute_ShouldResolveReferences () {
340
338
// preparation
@@ -370,7 +368,7 @@ void resolveReferences_WithNullReferenceInSetAttribute_ShouldResolveReferences()
370
368
final ObjectNode resolvedReference = JsonNodeFactory .instance .objectNode ();
371
369
resolvedReference .put (REFERENCE_TYPE_ID_FIELD , Product .referenceTypeId ());
372
370
resolvedReference .put (REFERENCE_ID_FIELD , PRODUCT_ID );
373
- assertThat (resolvedSet ).containsExactly (resolvedReference );
371
+ assertThat (resolvedSet ).containsExactlyInAnyOrder (resolvedReference , JsonNodeFactory . instance . nullNode () );
374
372
}
375
373
376
374
@ Test
You can’t perform that action at this time.
0 commit comments