ExampleTest basic
<?php
namespace Tests\Feature;
use Tests\TestCase;
ExampleTest basic
<?php
namespace Tests\Feature;
use Tests\TestCase;
0 : if value of this BigDecimal is equal to that of BigDecimal object passed as parameter.
1 : if value of this BigDecimal is greater than that of BigDecimal object passed as parameter.
-1 : if value of this BigDecimal is less than that of BigDecimal object passed as parameter.
if (accountingInvoice.getRetention().getAmount().compareTo(BigDecimal.ZERO) == 1) {
hasRetention = true;
<?php | |
private function restTemplate($method, $uriTemplate, $request, $logging = []) | |
{ | |
$account_id = null; | |
if (isset($request['accountId'])) { | |
$account_id = $request['accountId']; | |
} | |
$pnr = null; | |
if (isset($request['reference'])) { |
private ItemGroupTransfer itemGroupTransfer; | |
@Before | |
public void setUp() { | |
businessData = SupportTest.getBusinessData(); | |
itemGroupTransfer = new ItemGroupTransfer( | |
correlativeServiceStub, apiConnectorMock, saleInformationRepositoryMock); | |
ReflectionTestUtils.setField(itemGroupTransfer, "refundIgvConnector", refundIgvConnector); | |
ReflectionTestUtils.setField(itemGroupTransfer, "contractService", contractService); | |
ReflectionTestUtils.setField(itemGroupTransfer, "zMerxService", zMerxService); |
<form method="POST" th:action="@{/expenses/plannings/update}" | |
th:object="${planBranchReport}"> | |
<input type="hidden" name="id" th:value="${ planBranchReport.id }"> | |
<input type="hidden" name="status" value="V"> | |
<input type="hidden" name="branch" th:value="${planBranchReport.branch}"> | |
<input type="hidden" name="name" th:value="${officeName}"> | |
<button th:if="${planBranchReport.status == 'O'}" type="submit" | |
class="btn btn-success" onclick="if (confirm('Esta Usted seguro?')) { | |
return true; |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
@PostMapping({"/expenses/plannings/insert"}) | |
public String insertDistribution(RedirectAttributes redirectAttributes, @ModelAttribute PlanBranch planBranch, | |
BindingResult result) { | |
PlanBranchRS planBranchRS = planningService.store(planBranch); | |
redirectAttributes.addFlashAttribute("success", planBranchRS.isSuccess()); | |
redirectAttributes.addFlashAttribute("message", planBranchRS.getMessage()); | |
return "redirect:/expenses/plannings/" + planBranch.getBranch() + "/" + planBranch.getName(); | |
} |
test @bean from file json
package tech.zdev.payment.bot.bean;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;