Skip to content

Fix shared database tests #6862

@Siedlerchr

Description

@Siedlerchr

Currently, in the latest master version the SharedDatabaseTests are failing with the following error

org.jabref.logic.shared.SynchronizationTestSimulator

  Test simulateUpdateOnNoLongerExistingEntry() FAILED

  org.opentest4j.AssertionFailedError: expected: not <null>
      at org.jabref.logic.shared.SynchronizationTestSimulator.simulateUpdateOnNoLongerExistingEntry(SynchronizationTestSimulator.java:140)

  Test simulateEntryChangeConflicts() FAILED

  org.opentest4j.AssertionFailedError: expected: not <null>
      at org.jabref.logic.shared.SynchronizationTestSimulator.simulateEntryChangeConflicts(SynchronizationTestSimulator.java:165)

To execute the tests locally you need to setup a shared SQL Databse, PostgresSQL
The postgresSQL must run on localhost with the following setup:
DBname: postgres
User: postgres
Pasword: postgres

Alternatively change the values in the class TestConnector, method DBMSConnectionProperties getTestConnectionProperties()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions