Skip to content

[Java] Test fail during mvn install #2253

@tracyboehrer

Description

@tracyboehrer

Using the instructions in https://github.com/microsoft/Recognizers-Text/blob/master/Java/README.md, I get the following during the "mvn clean install" step.

Failed tests:   test[DateTimeRecognizer - English - DateTimeModel - "Must deliver sixteen (16) units before the thirty-first day of the month." - [2019-08-12T00:00:00]](com.microsoft.recognizers.text.tests.datetime.DateTimeTest): Does not match text on Input: "Must deliver sixteen (16) units before the thirty-first day of the month." expected:<[before the thirty-first day of ]the month> but was:<[]the month>
  test[DateTimeRecognizer - English - DateTimeModel - "We will come back before the twenty-sixth day of the month" - [2020-07-01T12:00:00]](com.microsoft.recognizers.text.tests.datetime.DateTimeTest): Does not match text on Input: "We will come back before the twenty-sixth day of the month" expected:<[before the twenty-sixth day of ]the month> but was:<[]the month>
  test[DateTimeRecognizer - English - DateTimeModel - "We will come back after the 15th day of next month" - [2020-07-01T12:00:00]](com.microsoft.recognizers.text.tests.datetime.DateTimeTest): Does not match text on Input: "We will come back after the 15th day of next month" expected:<[after the 15th day of ]next month> but was:<[]next month>
  test[DateTimeRecognizer - English - DateTimeModel - "We will come back after the 15th day of June" - [2020-07-01T12:00:00]](com.microsoft.recognizers.text.tests.datetime.DateTimeTest): Does not match text on Input: "We will come back after the 15th day of June" expected:<[after the 15th day of ]june> but was:<[]june>

Tests run: 11329, Failures: 4, Errors: 0, Skipped: 4065

As a side note, it would be helpful to include the POM dependency values for the sample in the README:

    <dependency>
      <groupId>com.microsoft.recognizers.text</groupId>
      <artifactId>recognizers-text</artifactId>
      <version>1.0-SNAPSHOT</version>
    </dependency>

    <dependency>
      <groupId>com.microsoft.recognizers.text.number</groupId>
      <artifactId>recognizers-text-number</artifactId>
      <version>1.0-SNAPSHOT</version>
    </dependency>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions