Best Assertj code snippet using org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration.describeIgnoreCollectionOrder
Source:RecursiveComparisonConfiguration.java
...470 describeIgnoredFields(description);471 describeIgnoredFieldsRegexes(description);472 describeIgnoredFieldsForTypes(description);473 describeOverriddenEqualsMethodsUsage(description, representation);474 describeIgnoreCollectionOrder(description);475 describeIgnoredCollectionOrderInFields(description);476 describeIgnoredCollectionOrderInFieldsMatchingRegexes(description);477 describeRegisteredComparatorByTypes(description);478 describeRegisteredComparatorForFields(description);479 describeTypeCheckingStrictness(description);480 return description.toString();481 }482 boolean shouldIgnore(DualValue dualValue) {483 FieldLocation fieldLocation = dualValue.fieldLocation;484 return matchesAnIgnoredField(fieldLocation)485 || matchesAnIgnoredFieldRegex(fieldLocation)486 || shouldIgnoreFieldBasedOnFieldValue(dualValue);487 }488 Set<String> getNonIgnoredActualFieldNames(DualValue dualValue) {489 Set<String> actualFieldsNames = Objects.getFieldsNames(dualValue.actual.getClass());490 // we are doing the same as shouldIgnore(DualValue dualValue) but in two steps for performance reasons:491 // - we filter first ignored field by names that don't need building DualValues492 // - then we filter field DualValues with the remaining criteria that need to get the field value493 // DualValues are built introspecting fields which is expensive.494 return actualFieldsNames.stream()495 // evaluate field name ignoring criteria on dualValue field location + field name496 .filter(fieldName -> !shouldIgnoreFieldBasedOnFieldLocation(dualValue.fieldLocation.field(fieldName)))497 .map(fieldName -> dualValueForField(dualValue, fieldName))498 // evaluate field value ignoring criteria499 .filter(fieldDualValue -> !shouldIgnoreFieldBasedOnFieldValue(fieldDualValue))500 // back to field name501 .map(DualValue::getFieldName)502 .filter(fieldName -> !fieldName.isEmpty())503 .collect(toSet());504 }505 // non accessible stuff506 private boolean shouldIgnoreFieldBasedOnFieldValue(DualValue dualValue) {507 return matchesAnIgnoredNullField(dualValue)508 || matchesAnIgnoredFieldType(dualValue)509 || matchesAnIgnoredEmptyOptionalField(dualValue);510 }511 private boolean shouldIgnoreFieldBasedOnFieldLocation(FieldLocation fieldLocation) {512 return matchesAnIgnoredField(fieldLocation) || matchesAnIgnoredFieldRegex(fieldLocation);513 }514 private static DualValue dualValueForField(DualValue parentDualValue, String fieldName) {515 Object actualFieldValue = COMPARISON.getSimpleValue(fieldName, parentDualValue.actual);516 // no guarantees we have a field in expected named as fieldName517 Object expectedFieldValue;518 try {519 expectedFieldValue = COMPARISON.getSimpleValue(fieldName, parentDualValue.expected);520 } catch (@SuppressWarnings("unused") Exception e) {521 // set the field to null to express it is absent, this not 100% accurate as the value could be null522 // but it works to evaluate if dualValue should be ignored with matchesAnIgnoredFieldType523 expectedFieldValue = null;524 }525 FieldLocation fieldLocation = parentDualValue.fieldLocation.field(fieldName);526 return new DualValue(fieldLocation, actualFieldValue, expectedFieldValue);527 }528 boolean hasCustomComparator(DualValue dualValue) {529 String fieldName = dualValue.getConcatenatedPath();530 if (hasComparatorForField(fieldName)) return true;531 if (dualValue.actual == null && dualValue.expected == null) return false;532 // best effort assuming actual and expected have the same type (not 100% true as we can compare object of differennt types)533 Class<?> valueType = dualValue.actual != null ? dualValue.actual.getClass() : dualValue.expected.getClass();534 return hasComparatorForType(valueType);535 }536 boolean shouldIgnoreOverriddenEqualsOf(DualValue dualValue) {537 // we must compare java basic types otherwise the recursive comparison loops infinitely!538 if (dualValue.isActualJavaType()) return false;539 // enums don't have fields, comparing them field by field has no sense, we need to use equals which is overridden and final540 if (dualValue.isActualAnEnum()) return false;541 return ignoreAllOverriddenEquals542 || matchesAnIgnoredOverriddenEqualsField(dualValue.fieldLocation)543 || (dualValue.actual != null && shouldIgnoreOverriddenEqualsOf(dualValue.actual.getClass()));544 }545 @VisibleForTesting546 boolean shouldIgnoreOverriddenEqualsOf(Class<? extends Object> clazz) {547 return matchesAnIgnoredOverriddenEqualsRegex(clazz) || matchesAnIgnoredOverriddenEqualsType(clazz);548 }549 boolean shouldIgnoreCollectionOrder(FieldLocation fieldLocation) {550 return ignoreCollectionOrder551 || matchesAnIgnoredCollectionOrderInField(fieldLocation)552 || matchesAnIgnoredCollectionOrderInFieldRegex(fieldLocation);553 }554 private void describeIgnoredFieldsRegexes(StringBuilder description) {555 if (!ignoredFieldsRegexes.isEmpty())556 description.append(format("- the fields matching the following regexes were ignored in the comparison: %s%n",557 describeRegexes(ignoredFieldsRegexes)));558 }559 private void describeIgnoredFields(StringBuilder description) {560 if (!ignoredFields.isEmpty())561 description.append(format("- the following fields were ignored in the comparison: %s%n", describeIgnoredFields()));562 }563 private void describeIgnoredFieldsForTypes(StringBuilder description) {564 if (!ignoredTypes.isEmpty())565 description.append(format("- the following types were ignored in the comparison: %s%n", describeIgnoredTypes()));566 }567 private void describeIgnoreAllActualNullFields(StringBuilder description) {568 if (ignoreAllActualNullFields) description.append(format("- all actual null fields were ignored in the comparison%n"));569 }570 private void describeIgnoreAllActualEmptyOptionalFields(StringBuilder description) {571 if (getIgnoreAllActualEmptyOptionalFields())572 description.append(format("- all actual empty optional fields were ignored in the comparison (including Optional, OptionalInt, OptionalLong and OptionalDouble)%n"));573 }574 private void describeIgnoreAllExpectedNullFields(StringBuilder description) {575 if (ignoreAllExpectedNullFields) description.append(format("- all expected null fields were ignored in the comparison%n"));576 }577 private void describeOverriddenEqualsMethodsUsage(StringBuilder description, Representation representation) {578 String header = ignoreAllOverriddenEquals579 ? "- no overridden equals methods were used in the comparison (except for java types)"580 : "- overridden equals methods were used in the comparison";581 description.append(header);582 if (isConfiguredToIgnoreSomeButNotAllOverriddenEqualsMethods()) {583 description.append(format(" except for:%n"));584 describeIgnoredOverriddenEqualsMethods(description, representation);585 } else {586 description.append(format("%n"));587 }588 }589 private void describeIgnoredOverriddenEqualsMethods(StringBuilder description, Representation representation) {590 if (!ignoredOverriddenEqualsForFields.isEmpty())591 description.append(format("%s the following fields: %s%n", INDENT_LEVEL_2,592 describeIgnoredOverriddenEqualsForFields()));593 if (!ignoredOverriddenEqualsForTypes.isEmpty())594 description.append(format("%s the following types: %s%n", INDENT_LEVEL_2,595 describeIgnoredOverriddenEqualsForTypes(representation)));596 if (!ignoredOverriddenEqualsForFieldsMatchingRegexes.isEmpty())597 description.append(format("%s the types matching the following regexes: %s%n", INDENT_LEVEL_2,598 describeRegexes(ignoredOverriddenEqualsForFieldsMatchingRegexes)));599 }600 private String describeIgnoredOverriddenEqualsForTypes(Representation representation) {601 List<String> fieldsDescription = ignoredOverriddenEqualsForTypes.stream()602 .map(representation::toStringOf)603 .collect(toList());604 return join(fieldsDescription).with(", ");605 }606 private String describeIgnoredOverriddenEqualsForFields() {607 return join(ignoredOverriddenEqualsForFields).with(", ");608 }609 private void describeIgnoreCollectionOrder(StringBuilder description) {610 if (ignoreCollectionOrder) description.append(format("- collection order was ignored in all fields in the comparison%n"));611 }612 private void describeIgnoredCollectionOrderInFields(StringBuilder description) {613 if (!ignoredCollectionOrderInFields.isEmpty())614 description.append(format("- collection order was ignored in the following fields in the comparison: %s%n",615 describeIgnoredCollectionOrderInFields()));616 }617 private void describeIgnoredCollectionOrderInFieldsMatchingRegexes(StringBuilder description) {618 if (!ignoredCollectionOrderInFieldsMatchingRegexes.isEmpty())619 description.append(format("- collection order was ignored in the fields matching the following regexes in the comparison: %s%n",620 describeRegexes(ignoredCollectionOrderInFieldsMatchingRegexes)));621 }622 private boolean matchesAnIgnoredOverriddenEqualsRegex(Class<?> clazz) {623 if (ignoredOverriddenEqualsForFieldsMatchingRegexes.isEmpty()) return false; // shortcut...
describeIgnoreCollectionOrder
Using AI Code Generation
1package org.assertj.core.api.recursive.comparison;2import static org.assertj.core.api.Assertions.assertThat;3import static org.assertj.core.api.Assertions.within;4import static org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration.builder;5import java.util.ArrayList;6import java.util.List;7import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration;8import org.junit.jupiter.api.Test;9public class RecursiveComparisonConfigurationTest {10 public void test() {11 List<String> list1 = new ArrayList<>();12 list1.add("one");13 list1.add("two");14 list1.add("three");15 List<String> list2 = new ArrayList<>();16 list2.add("one");17 list2.add("three");18 list2.add("two");19 assertThat(list1).usingRecursiveComparison()20 .isEqualTo(list2);21 }22 public void test1() {23 List<String> list1 = new ArrayList<>();24 list1.add("one");25 list1.add("two");26 list1.add("three");27 List<String> list2 = new ArrayList<>();28 list2.add("one");29 list2.add("three");30 list2.add("two");31 RecursiveComparisonConfiguration configuration = builder()32 .withIgnoreCollectionOrder(true)33 .build();34 assertThat(list1).usingRecursiveComparison(configuration)35 .isEqualTo(list2);36 }37 public void test2() {38 List<String> list1 = new ArrayList<>();39 list1.add("one");40 list1.add("two");41 list1.add("three");42 List<String> list2 = new ArrayList<>();43 list2.add("one");44 list2.add("three");45 list2.add("two");46 RecursiveComparisonConfiguration configuration = builder()47 .withIgnoreCollectionOrder(true)48 .build();49 assertThat(list1).usingRecursiveComparison(configuration)50 .isEqualTo(list2);51 }52}53; nested exception is org.opentest4j.AssertionFailedError:
describeIgnoreCollectionOrder
Using AI Code Generation
1import java.util.Arrays;2import java.util.Collections;3import java.util.List;4import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration;5import org.junit.jupiter.api.Test;6import static org.assertj.core.api.Assertions.assertThat;7class RecursiveComparisonConfigurationTest {8 void shouldIgnoreCollectionOrder() {9 List<String> actual = Arrays.asList("a", "b", "c");10 List<String> expected = Arrays.asList("b", "c", "a");11 RecursiveComparisonConfiguration configuration = new RecursiveComparisonConfiguration();12 configuration.ignoreCollectionOrder(true);13 assertThat(actual).usingRecursiveComparison(configuration).isEqualTo(expected);14 }15 void shouldIgnoreCollectionOrderWithDescribeIgnoreCollectionOrder() {16 List<String> actual = Arrays.asList("a", "b", "c");17 List<String> expected = Arrays.asList("b", "c", "a");18 RecursiveComparisonConfiguration configuration = new RecursiveComparisonConfiguration();19 configuration.describeIgnoreCollectionOrder();20 assertThat(actual).usingRecursiveComparison(configuration).isEqualTo(expected);21 }22 void shouldNotIgnoreCollectionOrder() {23 List<String> actual = Arrays.asList("a", "b", "c");24 List<String> expected = Arrays.asList("b", "c", "a");25 RecursiveComparisonConfiguration configuration = new RecursiveComparisonConfiguration();26 configuration.ignoreCollectionOrder(false);27 assertThat(actual).usingRecursiveComparison(configuration).isNotEqualTo(expected);28 }29 void shouldNotIgnoreCollectionOrderWithDescribeIgnoreCollectionOrder() {30 List<String> actual = Arrays.asList("a", "b", "c");31 List<String> expected = Arrays.asList("b", "c", "a");32 RecursiveComparisonConfiguration configuration = new RecursiveComparisonConfiguration();33 configuration.describeIgnoreCollectionOrder();34 assertThat(actual).usingRecursiveComparison(configuration).isNotEqualTo(expected);35 }36 void shouldIgnoreCollectionOrderWithEmptyCollection() {37 List<String> actual = Collections.emptyList();38 List<String> expected = Collections.emptyList();39 RecursiveComparisonConfiguration configuration = new RecursiveComparisonConfiguration();40 configuration.ignoreCollectionOrder(true);41 assertThat(actual).usingRecursiveComparison(configuration).isEqualTo(expected);42 }43 void shouldIgnoreCollectionOrderWithEmptyCollectionWithDescribeIgnoreCollectionOrder() {44 List<String> actual = Collections.emptyList();45 List<String> expected = Collections.emptyList();46 RecursiveComparisonConfiguration configuration = new RecursiveComparisonConfiguration();
describeIgnoreCollectionOrder
Using AI Code Generation
1import static org.assertj.core.api.Assertions.*;2import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration;3class RecursiveComparisonConfigurationTest {4 void testDescribeIgnoreCollectionOrder() {5 RecursiveComparisonConfiguration recursiveComparisonConfiguration = new RecursiveComparisonConfiguration();6 assertThat(recursiveComparisonConfiguration.describeIgnoreCollectionOrder()).isEqualTo("RecursiveComparisonConfiguration [ignoreCollectionOrder=false]");7 }8}9testDescribeIgnoreCollectionOrder(RecursiveComparisonConfigurationTest) Time elapsed: 0.01 sec10testDescribeIgnoreCollectionOrder(RecursiveComparisonConfigurationTest) Time elapsed: 0.001 sec11testDescribeIgnoreCollectionOrder(RecursiveComparisonConfigurationTest) Time elapsed: 0 sec
describeIgnoreCollectionOrder
Using AI Code Generation
1import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration;2import org.junit.jupiter.api.Test;3import java.util.Arrays;4import java.util.List;5import static org.assertj.core.api.Assertions.assertThat;6import static org.assertj.core.api.Assertions.within;7public class RecursiveComparisonConfigurationTest {8 public void shouldIgnoreOrderOfCollectionElements() {9 List<String> expected = Arrays.asList("a", "b", "c");10 List<String> actual = Arrays.asList("c", "a", "b");11 RecursiveComparisonConfiguration recursiveComparisonConfiguration = new RecursiveComparisonConfiguration();12 recursiveComparisonConfiguration.describeIgnoreCollectionOrder("list");13 assertThat(actual).usingRecursiveComparison(recursiveComparisonConfiguration)14 .isEqualTo(expected);15 }16}17when recursively comparing field by field, but found the following difference(s):18at org.assertj.core.error.ShouldBeEqualByComparingFieldByFieldRecursively.createAssertionError(ShouldBeEqualByComparingFieldByFieldRecursively.java:80)19at org.assertj.core.internal.objects.Objects.assertIsEqualToComparingFieldByFieldRecursively(Objects.java:499)20at org.assertj.core.api.AbstractObjectAssert.isEqualToComparingFieldByFieldRecursively(AbstractObjectAssert.java:160)21at org.assertj.core.api.AbstractObjectAssert.isEqualToComparingFieldByFieldRecursively(AbstractObjectAssert.java:150)22at org.assertj.core.api.AbstractObjectAssert.isEqualToComparingFieldByFieldRecursively(AbstractObjectAssert.java:145)23at org.assertj.core.api.AbstractObjectAssert.isEqualToComparingFieldByFieldRecursively(AbstractObjectAssert.java:140)24at org.assertj.core.api.AbstractObjectAssert.isEqualToComparingFieldByFieldRecursively(AbstractObjectAssert.java:135)25at org.assertj.core.api.AbstractObjectAssert.isEqualToComparingFieldByFieldRecursively(AbstractObjectAssert.java:130)26at org.assertj.core.api.AbstractObjectAssert.isEqualToComparingFieldByFieldRecursively(AbstractObjectAssert.java:125)
describeIgnoreCollectionOrder
Using AI Code Generation
1package com.baeldung.assertj;2import static org.assertj.core.api.Assertions.assertThat;3import java.util.Arrays;4import java.util.List;5import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration;6import org.junit.Test;7public class RecursiveComparisonUnitTest {8 public void givenCollectionsWithDifferentOrder_whenAssertingEquality_thenCorrect() {9 List<String> actual = Arrays.asList("John", "Jane", "Adam", "Tom");10 List<String> expected = Arrays.asList("Adam", "Jane", "John", "Tom");11 assertThat(actual).isEqualTo(expected);12 }13 public void givenCollectionsWithDifferentOrder_whenAssertingEqualityWithRecursiveComparisonConfiguration_thenCorrect() {14 List<String> actual = Arrays.asList("John", "Jane", "Adam", "Tom");15 List<String> expected = Arrays.asList("Adam", "Jane", "John", "Tom");16 RecursiveComparisonConfiguration recursiveComparisonConfiguration = new RecursiveComparisonConfiguration();17 recursiveComparisonConfiguration.ignoreCollectionOrder(true);18 assertThat(actual).usingRecursiveComparison(recursiveComparisonConfiguration)19 .isEqualTo(expected);20 }21 public void givenCollectionsWithDifferentOrder_whenAssertingEqualityWithRecursiveComparisonConfiguration_thenCorrect2() {22 List<String> actual = Arrays.asList("John", "Jane", "Adam", "Tom");23 List<String> expected = Arrays.asList("Adam", "Jane", "John", "Tom");24 assertThat(actual).usingRecursiveComparison()25 .ignoringCollectionOrder()26 .isEqualTo(expected);27 }28 public void givenCollectionsWithDifferentOrder_whenAssertingEqualityWithRecursiveComparisonConfiguration_thenCorrect3() {29 List<String> actual = Arrays.asList("John", "
describeIgnoreCollectionOrder
Using AI Code Generation
1import static org.assertj.core.api.Assertions.assertThat;2import static org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration.builder;3import java.util.ArrayList;4import java.util.List;5import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration;6import org.junit.Test;7public class RecursiveComparisonConfigurationTest {8 public void whenAssertingEqualityOfTwoObjectsWithCollection_thenEqual() {9 List<String> list1 = new ArrayList<>();10 list1.add("one");11 list1.add("two");12 list1.add("three");13 List<String> list2 = new ArrayList<>();14 list2.add("one");15 list2.add("two");16 list2.add("three");17 RecursiveComparisonConfiguration configuration = builder()18 .withIgnoreCollectionOrder(true)19 .build();20 assertThat(list1).usingRecursiveComparison(configuration)21 .isEqualTo(list2);22 }23}24import static org.assertj.core.api.Assertions.assertThat;25import static org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration.builder;26import java.util.ArrayList;27import java.util.List;28import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration;29import org.junit.Test;30public class RecursiveComparisonConfigurationTest {31 public void whenAssertingEqualityOfTwoObjectsWithCollection_thenEqual() {32 List<String> list1 = new ArrayList<>();33 list1.add("one");34 list1.add("two");35 list1.add("three");36 List<String> list2 = new ArrayList<>();37 list2.add("one");38 list2.add("two");39 list2.add("three");40 RecursiveComparisonConfiguration configuration = builder()41 .withIgnoreCollectionOrder(false)42 .build();43 assertThat(list1).usingRecursiveComparison(configuration)44 .isEqualTo(list2);45 }46}
describeIgnoreCollectionOrder
Using AI Code Generation
1package com.baeldung.assertj;2import static org.assertj.core.api.Assertions.assertThat;3import java.util.Arrays;4import java.util.List;5import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration;6import org.junit.Test;7public class RecursiveComparisonUnitTest {8 public void givenCollectionsWithDifferentOrder_whenAssertingEquality_thenCorrect() {9 List<String> actual = Arrays.asList("John", "Jane", "Adam", "Tom");10 List<String> expected = Arrays.asList("Adam", "Jane", "John", "Tom");11 assertThat(actual).isEqualTo(expected);12 }13 public void givenCollectionsWithDifferentOrder_whenAssertingEqualityWithRecursiveComparisonConfiguration_thenCorrect() {14 List<String> actual = Arrays.asList("John", "Jane", "Adam", "Tom");15 List<String> expected = Arrays.asList("Adam", "Jane", "John", "Tom");16 RecursiveComparisonConfiguration recursiveComparisonConfiguration = new RecursiveComparisonConfiguration();17 recursiveComparisonConfiguration.ignoreCollectionOrder(true);18 assertThat(actual).usingRecursiveComparison(recursiveComparisonConfiguration)19 .isEqualTo(expected);20 }21 public void givenCollectionsWithDifferentOrder_whenAssertingEqualityWithRecursiveComparisonConfiguration_thenCorrect2() {22 List<String> actual = Arrays.asList("John", "Jane", "Adam", "Tom");23 List<String> expected = Arrays.asList("Adam", "Jane", "John", "Tom");24 assertThat(actual).usingRecursiveComparison()25 .ignoringCollectionOrder()26 .isEqualTo(expected);27 }28 public void givenCollectionsWithDifferentOrder_whenAssertingEqualityWithRecursiveComparisonConfiguration_thenCorrect3() {29 List<String> actual = Arrays.asList("John", "
describeIgnoreCollectionOrder
Using AI Code Generation
1import static org.assertj.core.api.Assertions.assertThat;2import static org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration.builder;3import java.util.ArrayList;4import java.util.List;5import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration;6import org.junit.Test;7public class RecursiveComparisonConfigurationTest {8 public void whenAssertingEqualityOfTwoObjectsWithCollection_thenEqual() {9 List<String> list1 = new ArrayList<>();10 list1.add("one");11 list1.add("two");12 list1.add("three");13 List<String> list2 = new ArrayList<>();14 list2.add("one");15 list2.add("two");16 list2.add("three");17 RecursiveComparisonConfiguration configuration = builder()18 .withIgnoreCollectionOrder(true)19 .build();20 assertThat(list1).usingRecursiveComparison(configuration)21 .isEqualTo(list2);22 }23}24import static org.assertj.core.api.Assertions.assertThat;25import static org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration.builder;26import java.util.ArrayList;27import java.util.List;28import org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration;29import org.junit.Test;30public class RecursiveComparisonConfigurationTest {31 public void whenAssertingEqualityOfTwoObjectsWithCollection_thenEqual() {32 List<String> list1 = new ArrayList<>();33 list1.add("one");34 list1.add("two");35 list1.add("three");36 List<String> list2 = new ArrayList<>();37 list2.add("one");38 list2.add("two");39 list2.add("three");40 RecursiveComparisonConfiguration configuration = builder()41 .withIgnoreCollectionOrder(false)42 .build();43 assertThat(list1).usingRecursiveComparison(configuration)44 .isEqualTo(list2);45 }46}
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!