From b78cbb48cc3ca13e9010c1024e0e297cdc951472 Mon Sep 17 00:00:00 2001 From: Keerat Date: Fri, 3 Apr 2020 13:17:38 +0100 Subject: [PATCH 1/2] SEARCH-2016 changing fields to OOTB and exsisting fields to avoid duplicate tests with JDBC and SQL --- .../main/resources/model/finance-model.xml | 18 ++ .../search/FingerPrintTest.java | 257 +++++++++--------- 2 files changed, 142 insertions(+), 133 deletions(-) diff --git a/e2e-test/src/main/resources/model/finance-model.xml b/e2e-test/src/main/resources/model/finance-model.xml index 8e7bee6e8..a5a39d2e2 100644 --- a/e2e-test/src/main/resources/model/finance-model.xml +++ b/e2e-test/src/main/resources/model/finance-model.xml @@ -103,6 +103,24 @@ true + + EmpNo + d:int + false + + TRUE + true + + + + EmpDept + d:float + false + + TRUE + true + + diff --git a/e2e-test/src/test/java/org/alfresco/test/search/functional/searchServices/search/FingerPrintTest.java b/e2e-test/src/test/java/org/alfresco/test/search/functional/searchServices/search/FingerPrintTest.java index 858e8b2f5..67050b9dc 100644 --- a/e2e-test/src/test/java/org/alfresco/test/search/functional/searchServices/search/FingerPrintTest.java +++ b/e2e-test/src/test/java/org/alfresco/test/search/functional/searchServices/search/FingerPrintTest.java @@ -36,155 +36,146 @@ import org.testng.annotations.Test; * * @author Michael Suzuki */ -public class FingerPrintTest extends AbstractE2EFunctionalTest -{ - private FileModel file1; - private FileModel file2; - private FolderModel folder; +public class FingerPrintTest extends AbstractE2EFunctionalTest { + private FileModel file1; + private FileModel file2; + private FolderModel folder; - @BeforeClass(alwaysRun = true) - public void dataPreparation() throws Exception - { - /* - * Create the following file structure in the same Site : In addition to the preconditions created in dataPreparation - * |- folder - * |-- pangram-banana.txt - * |-- pangram-taco.txt - * |-- pangram-cat.txt - * |-- dog.txt - */ - folder = new FolderModel("The quick brown fox jumps over"); - dataContent.usingUser(testUser).usingSite(testSite).createFolder(folder); + @BeforeClass(alwaysRun = true) + public void dataPreparation() throws Exception { + /* + * Create the following file structure in the same Site : In addition to the + * preconditions created in dataPreparation |- folder |-- pangram-banana.txt |-- + * pangram-taco.txt |-- pangram-cat.txt |-- dog.txt + */ + folder = new FolderModel("The quick brown fox jumps over"); + dataContent.usingUser(testUser).usingSite(testSite).createFolder(folder); - file1 = new FileModel("pangram-banana.txt", FileType.TEXT_PLAIN, "The quick brown fox jumps over the lazy banana"); - file2 = new FileModel("pangram-taco.txt", FileType.TEXT_PLAIN, "The quick brown fox jumps over the lazy dog that ate the taco"); + file1 = new FileModel("pangram-banana.txt", FileType.TEXT_PLAIN, + "The quick brown fox jumps over the lazy banana"); + file2 = new FileModel("pangram-taco.txt", FileType.TEXT_PLAIN, + "The quick brown fox jumps over the lazy dog that ate the taco"); - FileModel file3 = new FileModel("pangram-cat.txt", FileType.TEXT_PLAIN, "The quick brown fox jumps over the lazy cat"); - FileModel file4 = new FileModel("dog.txt", FileType.TEXT_PLAIN, "The quick brown fox ate the lazy dog"); + FileModel file3 = new FileModel("pangram-cat.txt", FileType.TEXT_PLAIN, + "The quick brown fox jumps over the lazy cat"); + FileModel file4 = new FileModel("dog.txt", FileType.TEXT_PLAIN, "The quick brown fox ate the lazy dog"); - dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file1); - dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file2); - dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file3); - dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file4); + dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file1); + dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file2); + dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file3); + dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file4); - waitForContentIndexing(file4.getContent(), true); + waitForContentIndexing(file4.getContent(), true); - // Additional wait implemented to remove inconsistent failures. Ref: Search-1438 for details - waitForIndexing("FINGERPRINT:" + file2.getNodeRefWithoutVersion(), true); - waitForIndexing("FINGERPRINT:" + file3.getNodeRefWithoutVersion(), true); - } + // Additional wait implemented to remove inconsistent failures. Ref: Search-1438 + // for details + waitForIndexing("FINGERPRINT:" + file2.getNodeRefWithoutVersion(), true); + waitForIndexing("FINGERPRINT:" + file3.getNodeRefWithoutVersion(), true); + } - @Test - @Bug(id = "MNT-20449") - public void makeSureFingerprintQueryWorksAfterMetadataUpdate() throws Exception - { - // Index a new file with content - FileModel file = new FileModel("Project_Contract.txt", FileType.TEXT_PLAIN, "A content which is completely different from other indexed files."); - dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file); + @Test + @Bug(id = "MNT-20449") + public void makeSureFingerprintQueryWorksAfterMetadataUpdate() throws Exception { + // Index a new file with content + FileModel file = new FileModel("Project_Contract.txt", FileType.TEXT_PLAIN, + "A content which is completely different from other indexed files."); + dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file); - // make sure the content has been indexed (i.e. the ContentTracker fingerprint has been correctly computed - assertTrue(waitForIndexing("FINGERPRINT:" + file.getNodeRefWithoutVersion(), true)); + // make sure the content has been indexed (i.e. the ContentTracker fingerprint + // has been correctly computed + assertTrue(waitForIndexing("FINGERPRINT:" + file.getNodeRefWithoutVersion(), true)); - // Update some metadata attribute of the file - String newFileName = "Contrattazione.pdf"; - file.setName(newFileName); + // Update some metadata attribute of the file + String newFileName = "Contrattazione.pdf"; + file.setName(newFileName); - // ...and reindex it - dataContent.usingUser(testUser).usingSite(testSite).usingResource(file).renameContent(file); + // ...and reindex it + dataContent.usingUser(testUser).usingSite(testSite).usingResource(file).renameContent(file); - // Make sure the new version of the file has been indexed - assertTrue(waitForMetadataIndexing("Contrattazione", true)); + // Make sure the new version of the file has been indexed + assertTrue(waitForMetadataIndexing("Contrattazione", true)); - // ...and finally - assertTrue(waitForIndexing("FINGERPRINT:" + file.getNodeRefWithoutVersion(), true)); - } + // ...and finally + assertTrue(waitForIndexing("FINGERPRINT:" + file.getNodeRefWithoutVersion(), true)); + } - /** - * Search similar document based on document finger print. - * The data prep should have loaded 2 files which one is similar - * to the files loaded as part of this test. - * Note that for fingerprint to work it need a 5 word sequence. - */ - @Test - public void search() - { - String uuid = file1.getNodeRefWithoutVersion(); - Assert.assertNotNull(uuid); - String fingerprint = String.format("FINGERPRINT:%s", uuid); - SearchResponse response = query(fingerprint); - int count = response.getEntries().size(); - assertTrue(count > 1); - for (SearchNodeModel m : response.getEntries()) - { - String match = m.getModel().getName(); - switch (match) - { - case "pangram.txt": - case "pangram-banana.txt": - case "pangram-taco.txt": - case "pangram-cat.txt": - break; - default: - throw new AssertionError("Not a match to an expected file: " + m.getModel().getName()); - } - m.getModel().assertThat().field("name").isNot("dog.txt"); - m.getModel().assertThat().field("name").isNot("cars.txt"); - } - } + /** + * Search similar document based on document finger print. The data prep should + * have loaded 2 files which one is similar to the files loaded as part of this + * test. Note that for fingerprint to work it need a 5 word sequence. + */ + @Test + public void search() { + String uuid = file1.getNodeRefWithoutVersion(); + Assert.assertNotNull(uuid); + String fingerprint = String.format("FINGERPRINT:%s", uuid); + SearchResponse response = query(fingerprint); + int count = response.getEntries().size(); + assertTrue(count > 1); + for (SearchNodeModel m : response.getEntries()) { + String match = m.getModel().getName(); + switch (match) { + case "pangram.txt": + case "pangram-banana.txt": + case "pangram-taco.txt": + case "pangram-cat.txt": + break; + default: + throw new AssertionError("Not a match to an expected file: " + m.getModel().getName()); + } + m.getModel().assertThat().field("name").isNot("dog.txt"); + m.getModel().assertThat().field("name").isNot("cars.txt"); + } + } - @Test - public void searchSimilar() - { - String uuid = file2.getNodeRefWithoutVersion(); - Assert.assertNotNull(uuid); + @Test + public void searchSimilar() { + String uuid = file2.getNodeRefWithoutVersion(); + Assert.assertNotNull(uuid); - // In the response entity there is a score of each doc, change below threshold to bring more like or less. - String fingerprint = String.format("FINGERPRINT:%s_68", uuid); - SearchResponse response = query(fingerprint); + // In the response entity there is a score of each doc, change below threshold + // to bring more like or less. + String fingerprint = String.format("FINGERPRINT:%s_68", uuid); + SearchResponse response = query(fingerprint); - int count = response.getEntries().size(); - assertTrue(count > 1); + int count = response.getEntries().size(); + assertTrue(count > 1); - for (SearchNodeModel m : response.getEntries()) - { - switch (m.getModel().getName()) - { - case "pangram.txt": - case "pangram-taco.txt": - break; - default: - throw new AssertionError("Not a match to an expected file: " + m.getModel().getName()); - } - m.getModel().assertThat().field("name").isNot("pangram-banana.txt"); - m.getModel().assertThat().field("name").isNot("pangram-cat.txt"); - m.getModel().assertThat().field("name").isNot("dog.txt"); - m.getModel().assertThat().field("name").isNot("cars.txt"); - } - } + for (SearchNodeModel m : response.getEntries()) { + switch (m.getModel().getName()) { + case "pangram.txt": + case "pangram-taco.txt": + break; + default: + throw new AssertionError("Not a match to an expected file: " + m.getModel().getName()); + } + m.getModel().assertThat().field("name").isNot("pangram-banana.txt"); + m.getModel().assertThat().field("name").isNot("pangram-cat.txt"); + m.getModel().assertThat().field("name").isNot("dog.txt"); + m.getModel().assertThat().field("name").isNot("cars.txt"); + } + } - @Test - public void searchSimilar67Percent() - { - String uuid = file2.getNodeRefWithoutVersion(); - Assert.assertNotNull(uuid); - String fingerprint = String.format("FINGERPRINT:%s_68", uuid); - SearchResponse response = query(fingerprint); - int count = response.getEntries().size(); - assertTrue(count > 1); - for (SearchNodeModel m : response.getEntries()) - { - switch (m.getModel().getName()) - { - case "pangram.txt": - case "pangram-taco.txt": - case "pangram-cat.txt": - break; - default: - throw new AssertionError("Not a match to an expected file: " + m.getModel().getName()); - } - m.getModel().assertThat().field("name").isNot("pangram-banana.txt"); - m.getModel().assertThat().field("name").isNot("dog.txt"); - m.getModel().assertThat().field("name").isNot("cars.txt"); - } - } + @Test + public void searchSimilar67Percent() { + String uuid = file2.getNodeRefWithoutVersion(); + Assert.assertNotNull(uuid); + String fingerprint = String.format("FINGERPRINT:%s_68", uuid); + SearchResponse response = query(fingerprint); + int count = response.getEntries().size(); + assertTrue(count > 1); + for (SearchNodeModel m : response.getEntries()) { + switch (m.getModel().getName()) { + case "pangram.txt": + case "pangram-taco.txt": + case "pangram-cat.txt": + break; + default: + throw new AssertionError("Not a match to an expected file: " + m.getModel().getName()); + } + m.getModel().assertThat().field("name").isNot("pangram-banana.txt"); + m.getModel().assertThat().field("name").isNot("dog.txt"); + m.getModel().assertThat().field("name").isNot("cars.txt"); + } + } } From a534604eed2745840ee2f222de53df3f0d7681c8 Mon Sep 17 00:00:00 2001 From: Keerat Date: Fri, 3 Apr 2020 13:19:25 +0100 Subject: [PATCH 2/2] SEARCH-2016 changing fingerprint tests back --- .../search/FingerPrintTest.java | 257 +++++++++--------- 1 file changed, 133 insertions(+), 124 deletions(-) diff --git a/e2e-test/src/test/java/org/alfresco/test/search/functional/searchServices/search/FingerPrintTest.java b/e2e-test/src/test/java/org/alfresco/test/search/functional/searchServices/search/FingerPrintTest.java index 67050b9dc..858e8b2f5 100644 --- a/e2e-test/src/test/java/org/alfresco/test/search/functional/searchServices/search/FingerPrintTest.java +++ b/e2e-test/src/test/java/org/alfresco/test/search/functional/searchServices/search/FingerPrintTest.java @@ -36,146 +36,155 @@ import org.testng.annotations.Test; * * @author Michael Suzuki */ -public class FingerPrintTest extends AbstractE2EFunctionalTest { - private FileModel file1; - private FileModel file2; - private FolderModel folder; +public class FingerPrintTest extends AbstractE2EFunctionalTest +{ + private FileModel file1; + private FileModel file2; + private FolderModel folder; - @BeforeClass(alwaysRun = true) - public void dataPreparation() throws Exception { - /* - * Create the following file structure in the same Site : In addition to the - * preconditions created in dataPreparation |- folder |-- pangram-banana.txt |-- - * pangram-taco.txt |-- pangram-cat.txt |-- dog.txt - */ - folder = new FolderModel("The quick brown fox jumps over"); - dataContent.usingUser(testUser).usingSite(testSite).createFolder(folder); + @BeforeClass(alwaysRun = true) + public void dataPreparation() throws Exception + { + /* + * Create the following file structure in the same Site : In addition to the preconditions created in dataPreparation + * |- folder + * |-- pangram-banana.txt + * |-- pangram-taco.txt + * |-- pangram-cat.txt + * |-- dog.txt + */ + folder = new FolderModel("The quick brown fox jumps over"); + dataContent.usingUser(testUser).usingSite(testSite).createFolder(folder); - file1 = new FileModel("pangram-banana.txt", FileType.TEXT_PLAIN, - "The quick brown fox jumps over the lazy banana"); - file2 = new FileModel("pangram-taco.txt", FileType.TEXT_PLAIN, - "The quick brown fox jumps over the lazy dog that ate the taco"); + file1 = new FileModel("pangram-banana.txt", FileType.TEXT_PLAIN, "The quick brown fox jumps over the lazy banana"); + file2 = new FileModel("pangram-taco.txt", FileType.TEXT_PLAIN, "The quick brown fox jumps over the lazy dog that ate the taco"); - FileModel file3 = new FileModel("pangram-cat.txt", FileType.TEXT_PLAIN, - "The quick brown fox jumps over the lazy cat"); - FileModel file4 = new FileModel("dog.txt", FileType.TEXT_PLAIN, "The quick brown fox ate the lazy dog"); + FileModel file3 = new FileModel("pangram-cat.txt", FileType.TEXT_PLAIN, "The quick brown fox jumps over the lazy cat"); + FileModel file4 = new FileModel("dog.txt", FileType.TEXT_PLAIN, "The quick brown fox ate the lazy dog"); - dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file1); - dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file2); - dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file3); - dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file4); + dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file1); + dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file2); + dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file3); + dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file4); - waitForContentIndexing(file4.getContent(), true); + waitForContentIndexing(file4.getContent(), true); - // Additional wait implemented to remove inconsistent failures. Ref: Search-1438 - // for details - waitForIndexing("FINGERPRINT:" + file2.getNodeRefWithoutVersion(), true); - waitForIndexing("FINGERPRINT:" + file3.getNodeRefWithoutVersion(), true); - } + // Additional wait implemented to remove inconsistent failures. Ref: Search-1438 for details + waitForIndexing("FINGERPRINT:" + file2.getNodeRefWithoutVersion(), true); + waitForIndexing("FINGERPRINT:" + file3.getNodeRefWithoutVersion(), true); + } - @Test - @Bug(id = "MNT-20449") - public void makeSureFingerprintQueryWorksAfterMetadataUpdate() throws Exception { - // Index a new file with content - FileModel file = new FileModel("Project_Contract.txt", FileType.TEXT_PLAIN, - "A content which is completely different from other indexed files."); - dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file); + @Test + @Bug(id = "MNT-20449") + public void makeSureFingerprintQueryWorksAfterMetadataUpdate() throws Exception + { + // Index a new file with content + FileModel file = new FileModel("Project_Contract.txt", FileType.TEXT_PLAIN, "A content which is completely different from other indexed files."); + dataContent.usingUser(testUser).usingSite(testSite).usingResource(folder).createContent(file); - // make sure the content has been indexed (i.e. the ContentTracker fingerprint - // has been correctly computed - assertTrue(waitForIndexing("FINGERPRINT:" + file.getNodeRefWithoutVersion(), true)); + // make sure the content has been indexed (i.e. the ContentTracker fingerprint has been correctly computed + assertTrue(waitForIndexing("FINGERPRINT:" + file.getNodeRefWithoutVersion(), true)); - // Update some metadata attribute of the file - String newFileName = "Contrattazione.pdf"; - file.setName(newFileName); + // Update some metadata attribute of the file + String newFileName = "Contrattazione.pdf"; + file.setName(newFileName); - // ...and reindex it - dataContent.usingUser(testUser).usingSite(testSite).usingResource(file).renameContent(file); + // ...and reindex it + dataContent.usingUser(testUser).usingSite(testSite).usingResource(file).renameContent(file); - // Make sure the new version of the file has been indexed - assertTrue(waitForMetadataIndexing("Contrattazione", true)); + // Make sure the new version of the file has been indexed + assertTrue(waitForMetadataIndexing("Contrattazione", true)); - // ...and finally - assertTrue(waitForIndexing("FINGERPRINT:" + file.getNodeRefWithoutVersion(), true)); - } + // ...and finally + assertTrue(waitForIndexing("FINGERPRINT:" + file.getNodeRefWithoutVersion(), true)); + } - /** - * Search similar document based on document finger print. The data prep should - * have loaded 2 files which one is similar to the files loaded as part of this - * test. Note that for fingerprint to work it need a 5 word sequence. - */ - @Test - public void search() { - String uuid = file1.getNodeRefWithoutVersion(); - Assert.assertNotNull(uuid); - String fingerprint = String.format("FINGERPRINT:%s", uuid); - SearchResponse response = query(fingerprint); - int count = response.getEntries().size(); - assertTrue(count > 1); - for (SearchNodeModel m : response.getEntries()) { - String match = m.getModel().getName(); - switch (match) { - case "pangram.txt": - case "pangram-banana.txt": - case "pangram-taco.txt": - case "pangram-cat.txt": - break; - default: - throw new AssertionError("Not a match to an expected file: " + m.getModel().getName()); - } - m.getModel().assertThat().field("name").isNot("dog.txt"); - m.getModel().assertThat().field("name").isNot("cars.txt"); - } - } + /** + * Search similar document based on document finger print. + * The data prep should have loaded 2 files which one is similar + * to the files loaded as part of this test. + * Note that for fingerprint to work it need a 5 word sequence. + */ + @Test + public void search() + { + String uuid = file1.getNodeRefWithoutVersion(); + Assert.assertNotNull(uuid); + String fingerprint = String.format("FINGERPRINT:%s", uuid); + SearchResponse response = query(fingerprint); + int count = response.getEntries().size(); + assertTrue(count > 1); + for (SearchNodeModel m : response.getEntries()) + { + String match = m.getModel().getName(); + switch (match) + { + case "pangram.txt": + case "pangram-banana.txt": + case "pangram-taco.txt": + case "pangram-cat.txt": + break; + default: + throw new AssertionError("Not a match to an expected file: " + m.getModel().getName()); + } + m.getModel().assertThat().field("name").isNot("dog.txt"); + m.getModel().assertThat().field("name").isNot("cars.txt"); + } + } - @Test - public void searchSimilar() { - String uuid = file2.getNodeRefWithoutVersion(); - Assert.assertNotNull(uuid); + @Test + public void searchSimilar() + { + String uuid = file2.getNodeRefWithoutVersion(); + Assert.assertNotNull(uuid); - // In the response entity there is a score of each doc, change below threshold - // to bring more like or less. - String fingerprint = String.format("FINGERPRINT:%s_68", uuid); - SearchResponse response = query(fingerprint); + // In the response entity there is a score of each doc, change below threshold to bring more like or less. + String fingerprint = String.format("FINGERPRINT:%s_68", uuid); + SearchResponse response = query(fingerprint); - int count = response.getEntries().size(); - assertTrue(count > 1); + int count = response.getEntries().size(); + assertTrue(count > 1); - for (SearchNodeModel m : response.getEntries()) { - switch (m.getModel().getName()) { - case "pangram.txt": - case "pangram-taco.txt": - break; - default: - throw new AssertionError("Not a match to an expected file: " + m.getModel().getName()); - } - m.getModel().assertThat().field("name").isNot("pangram-banana.txt"); - m.getModel().assertThat().field("name").isNot("pangram-cat.txt"); - m.getModel().assertThat().field("name").isNot("dog.txt"); - m.getModel().assertThat().field("name").isNot("cars.txt"); - } - } + for (SearchNodeModel m : response.getEntries()) + { + switch (m.getModel().getName()) + { + case "pangram.txt": + case "pangram-taco.txt": + break; + default: + throw new AssertionError("Not a match to an expected file: " + m.getModel().getName()); + } + m.getModel().assertThat().field("name").isNot("pangram-banana.txt"); + m.getModel().assertThat().field("name").isNot("pangram-cat.txt"); + m.getModel().assertThat().field("name").isNot("dog.txt"); + m.getModel().assertThat().field("name").isNot("cars.txt"); + } + } - @Test - public void searchSimilar67Percent() { - String uuid = file2.getNodeRefWithoutVersion(); - Assert.assertNotNull(uuid); - String fingerprint = String.format("FINGERPRINT:%s_68", uuid); - SearchResponse response = query(fingerprint); - int count = response.getEntries().size(); - assertTrue(count > 1); - for (SearchNodeModel m : response.getEntries()) { - switch (m.getModel().getName()) { - case "pangram.txt": - case "pangram-taco.txt": - case "pangram-cat.txt": - break; - default: - throw new AssertionError("Not a match to an expected file: " + m.getModel().getName()); - } - m.getModel().assertThat().field("name").isNot("pangram-banana.txt"); - m.getModel().assertThat().field("name").isNot("dog.txt"); - m.getModel().assertThat().field("name").isNot("cars.txt"); - } - } + @Test + public void searchSimilar67Percent() + { + String uuid = file2.getNodeRefWithoutVersion(); + Assert.assertNotNull(uuid); + String fingerprint = String.format("FINGERPRINT:%s_68", uuid); + SearchResponse response = query(fingerprint); + int count = response.getEntries().size(); + assertTrue(count > 1); + for (SearchNodeModel m : response.getEntries()) + { + switch (m.getModel().getName()) + { + case "pangram.txt": + case "pangram-taco.txt": + case "pangram-cat.txt": + break; + default: + throw new AssertionError("Not a match to an expected file: " + m.getModel().getName()); + } + m.getModel().assertThat().field("name").isNot("pangram-banana.txt"); + m.getModel().assertThat().field("name").isNot("dog.txt"); + m.getModel().assertThat().field("name").isNot("cars.txt"); + } + } }