-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 9507-show-linked-collections
- Loading branch information
Showing
17 changed files
with
256 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
There is now a Markdown (.md) previewer: https://dataverse-guide--9986.org.readthedocs.build/en/9986/user/dataset-management.html#file-previews |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
src/test/java/edu/harvard/iq/dataverse/DatasetFieldDefaultValueTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package edu.harvard.iq.dataverse; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
import static org.junit.jupiter.api.Assertions.assertFalse; | ||
|
||
import org.junit.jupiter.api.BeforeEach; | ||
|
||
public class DatasetFieldDefaultValueTest { | ||
private DatasetFieldDefaultValue dataverseContact; | ||
|
||
@BeforeEach | ||
public void before() { | ||
this.dataverseContact = new DatasetFieldDefaultValue(); | ||
this.dataverseContact.setId(1L); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithNull() { | ||
assertFalse(this.dataverseContact.equals(null)); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithDifferentClass() { | ||
DatasetField datasetField = new DatasetField(); | ||
|
||
assertFalse(this.dataverseContact.equals(datasetField)); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithSameClassSameId() { | ||
DatasetFieldDefaultValue dataverseContact1 = new DatasetFieldDefaultValue(); | ||
dataverseContact1.setId(1L); | ||
|
||
assertTrue(this.dataverseContact.equals(dataverseContact1)); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithSameClassDifferentId() { | ||
DatasetFieldDefaultValue dataverseContact1 = new DatasetFieldDefaultValue(); | ||
dataverseContact1.setId(2L); | ||
|
||
assertFalse(this.dataverseContact.equals(dataverseContact1)); | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
src/test/java/edu/harvard/iq/dataverse/DataverseContactTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package edu.harvard.iq.dataverse; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
import static org.junit.jupiter.api.Assertions.assertFalse; | ||
|
||
import org.junit.jupiter.api.BeforeEach; | ||
|
||
public class DataverseContactTest { | ||
private DataverseContact dataverseContact; | ||
|
||
@BeforeEach | ||
public void before() { | ||
this.dataverseContact = new DataverseContact(); | ||
this.dataverseContact.setId(1L); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithNull() { | ||
assertFalse(this.dataverseContact.equals(null)); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithDifferentClass() { | ||
DatasetFieldType datasetFieldType = new DatasetFieldType(); | ||
|
||
assertFalse(this.dataverseContact.equals(datasetFieldType)); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithSameClassSameId() { | ||
DataverseContact dataverseContact1 = new DataverseContact(); | ||
dataverseContact1.setId(1L); | ||
|
||
assertTrue(this.dataverseContact.equals(dataverseContact1)); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithSameClassDifferentId() { | ||
DataverseContact dataverseContact1 = new DataverseContact(); | ||
dataverseContact1.setId(2L); | ||
|
||
assertFalse(this.dataverseContact.equals(dataverseContact1)); | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
src/test/java/edu/harvard/iq/dataverse/DataverseFacetTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package edu.harvard.iq.dataverse; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
import static org.junit.jupiter.api.Assertions.assertFalse; | ||
|
||
import org.junit.jupiter.api.BeforeEach; | ||
|
||
public class DataverseFacetTest { | ||
private DataverseFacet dataverseFacet; | ||
|
||
@BeforeEach | ||
public void before() { | ||
this.dataverseFacet = new DataverseFacet(); | ||
this.dataverseFacet.setId(1L); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithNull() { | ||
assertFalse(this.dataverseFacet.equals(null)); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithDifferentClass() { | ||
DatasetFieldType datasetFieldType = new DatasetFieldType(); | ||
|
||
assertFalse(this.dataverseFacet.equals(datasetFieldType)); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithSameClassSameId() { | ||
DataverseFacet dataverseFacet1 = new DataverseFacet(); | ||
dataverseFacet1.setId(1L); | ||
|
||
assertTrue(this.dataverseFacet.equals(dataverseFacet1)); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithSameClassDifferentId() { | ||
DataverseFacet dataverseFacet1 = new DataverseFacet(); | ||
dataverseFacet1.setId(2L); | ||
|
||
assertFalse(this.dataverseFacet.equals(dataverseFacet1)); | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
src/test/java/edu/harvard/iq/dataverse/DataverseFeaturedDataverseTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package edu.harvard.iq.dataverse; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
import static org.junit.jupiter.api.Assertions.assertFalse; | ||
|
||
import org.junit.jupiter.api.BeforeEach; | ||
|
||
public class DataverseFeaturedDataverseTest { | ||
private DataverseFeaturedDataverse dataverseFeaturedDataverse; | ||
|
||
@BeforeEach | ||
public void before() { | ||
this.dataverseFeaturedDataverse = new DataverseFeaturedDataverse(); | ||
this.dataverseFeaturedDataverse.setId(1L); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithNull() { | ||
assertFalse(this.dataverseFeaturedDataverse.equals(null)); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithDifferentClass() { | ||
DatasetFieldType datasetFieldType = new DatasetFieldType(); | ||
|
||
assertFalse(this.dataverseFeaturedDataverse.equals(datasetFieldType)); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithSameClassSameId() { | ||
DataverseFeaturedDataverse dataverseFeaturedDataverse1 = new DataverseFeaturedDataverse(); | ||
dataverseFeaturedDataverse1.setId(1L); | ||
|
||
assertTrue(this.dataverseFeaturedDataverse.equals(dataverseFeaturedDataverse1)); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithSameClassDifferentId() { | ||
DataverseFeaturedDataverse dataverseFeaturedDataverse1 = new DataverseFeaturedDataverse(); | ||
dataverseFeaturedDataverse1.setId(2L); | ||
|
||
assertFalse(this.dataverseFeaturedDataverse.equals(dataverseFeaturedDataverse1)); | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
src/test/java/edu/harvard/iq/dataverse/DataverseThemeTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package edu.harvard.iq.dataverse; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
import static org.junit.jupiter.api.Assertions.assertFalse; | ||
|
||
import org.junit.jupiter.api.BeforeEach; | ||
|
||
public class DataverseThemeTest { | ||
private DataverseTheme dataverseTheme; | ||
|
||
@BeforeEach | ||
public void before() { | ||
this.dataverseTheme = new DataverseTheme(); | ||
this.dataverseTheme.setId(1L); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithNull() { | ||
assertFalse(this.dataverseTheme.equals(null)); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithDifferentClass() { | ||
DatasetFieldType datasetFieldType = new DatasetFieldType(); | ||
|
||
assertFalse(this.dataverseTheme.equals(datasetFieldType)); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithSameClassSameId() { | ||
DataverseTheme dataverseTheme1 = new DataverseTheme(); | ||
dataverseTheme1.setId(1L); | ||
|
||
assertTrue(this.dataverseTheme.equals(dataverseTheme1)); | ||
} | ||
|
||
@Test | ||
public void testEqualsWithSameClassDifferentId() { | ||
DataverseTheme dataverseTheme1 = new DataverseTheme(); | ||
dataverseTheme1.setId(2L); | ||
|
||
assertFalse(this.dataverseTheme.equals(dataverseTheme1)); | ||
} | ||
} |