fixing the AssetResourceIntTest BigDecimal equals
This commit is contained in:
parent
de439a1658
commit
98f96a72b1
@ -646,17 +646,17 @@ public class AssetResourceIntTest {
|
|||||||
restAssetMockMvc.perform(put("/api/assets")
|
restAssetMockMvc.perform(put("/api/assets")
|
||||||
.contentType(TestUtil.APPLICATION_JSON_UTF8)
|
.contentType(TestUtil.APPLICATION_JSON_UTF8)
|
||||||
.content(TestUtil.convertObjectToJsonBytes(assetDTO)))
|
.content(TestUtil.convertObjectToJsonBytes(assetDTO)))
|
||||||
.andExpect(status().isOk());
|
.andExpect(status().isBadRequest());
|
||||||
|
|
||||||
// Validate the Asset in the database
|
// Validate the Asset in the database
|
||||||
List<Asset> assetList = assetRepository.findAll();
|
List<Asset> assetList = assetRepository.findAll();
|
||||||
assertThat(assetList).hasSize(databaseSizeBeforeUpdate);
|
assertThat(assetList).hasSize(databaseSizeBeforeUpdate);
|
||||||
Asset testAsset = assetList.get(assetList.size() - 1);
|
Asset testAsset = assetList.get(assetList.size() - 1);
|
||||||
assertThat(testAsset.getDocumentDate()).isEqualTo(UPDATED_DOCUMENT_DATE);
|
assertThat(testAsset.getDocumentDate()).isEqualTo(DEFAULT_DOCUMENT_DATE);
|
||||||
assertThat(testAsset.getValueDate()).isEqualTo(UPDATED_VALUE_DATE);
|
assertThat(testAsset.getValueDate()).isEqualTo(DEFAULT_VALUE_DATE);
|
||||||
assertThat(testAsset.getAction()).isEqualTo(UPDATED_ACTION);
|
assertThat(testAsset.getAction()).isEqualByComparingTo(DEFAULT_ACTION);
|
||||||
assertThat(testAsset.getAmount()).isEqualTo(UPDATED_AMOUNT);
|
assertThat(testAsset.getAmount()).isEqualByComparingTo(DEFAULT_AMOUNT);
|
||||||
assertThat(testAsset.getRemark()).isEqualTo(UPDATED_REMARK);
|
assertThat(testAsset.getRemark()).isEqualTo(DEFAULT_REMARK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user