| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.service.generic;
|
1 |
package com.spice.profitmandi.service.generic;
|
| 2 |
|
2 |
|
| 3 |
|
3 |
|
| - |
|
4 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| - |
|
5 |
import com.spice.profitmandi.dao.entity.fofo.InvoiceNumberGenerationSequence;
|
| - |
|
6 |
import com.spice.profitmandi.dao.repository.GenericRepository;
|
| - |
|
7 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
| - |
|
8 |
import com.spice.profitmandi.dao.repository.fofo.InvoiceNumberGenerationSequenceRepository;
|
| - |
|
9 |
import com.spice.profitmandi.service.pricing.PriceDropService;
|
| - |
|
10 |
import com.spice.profitmandi.service.scheme.SchemeService;
|
| 4 |
import java.util.Arrays;
|
11 |
import com.spice.profitmandi.web.config.AppConfig;
|
| 5 |
|
- |
|
| 6 |
import org.junit.Ignore;
|
12 |
import org.junit.Ignore;
|
| 7 |
import org.junit.runner.RunWith;
|
13 |
import org.junit.runner.RunWith;
|
| 8 |
import org.slf4j.Logger;
|
14 |
import org.slf4j.Logger;
|
| 9 |
import org.slf4j.LoggerFactory;
|
15 |
import org.slf4j.LoggerFactory;
|
| 10 |
import org.springframework.beans.factory.annotation.Autowired;
|
16 |
import org.springframework.beans.factory.annotation.Autowired;
|
| 11 |
import org.springframework.test.context.ContextConfiguration;
|
17 |
import org.springframework.test.context.ContextConfiguration;
|
| 12 |
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
18 |
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
| 13 |
import org.springframework.test.context.web.WebAppConfiguration;
|
19 |
import org.springframework.test.context.web.WebAppConfiguration;
|
| 14 |
import org.springframework.transaction.annotation.Transactional;
|
20 |
import org.springframework.transaction.annotation.Transactional;
|
| 15 |
|
21 |
|
| 16 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
- |
|
| 17 |
import com.spice.profitmandi.common.util.Utils;
|
- |
|
| 18 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
- |
|
| 19 |
import com.spice.profitmandi.dao.entity.fofo.InvoiceNumberGenerationSequence;
|
- |
|
| 20 |
import com.spice.profitmandi.dao.repository.GenericRepository;
|
- |
|
| 21 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
- |
|
| 22 |
import com.spice.profitmandi.dao.repository.fofo.InvoiceNumberGenerationSequenceRepository;
|
- |
|
| 23 |
import com.spice.profitmandi.service.pricing.PriceDropService;
|
- |
|
| 24 |
import com.spice.profitmandi.service.scheme.SchemeService;
|
- |
|
| 25 |
import com.spice.profitmandi.web.config.AppConfig;
|
- |
|
| 26 |
|
- |
|
| 27 |
@RunWith(SpringJUnit4ClassRunner.class)
|
22 |
@RunWith(SpringJUnit4ClassRunner.class)
|
| 28 |
@WebAppConfiguration
|
23 |
@WebAppConfiguration
|
| 29 |
@ContextConfiguration(classes = {AppConfig.class})
|
24 |
@ContextConfiguration(classes = {AppConfig.class})
|
| 30 |
//@ContextConfiguration
|
25 |
//@ContextConfiguration
|
| 31 |
@Transactional
|
26 |
@Transactional
|
| Line 83... |
Line 78... |
| 83 |
}
|
78 |
}
|
| 84 |
invoiceNumberGenerationSequenceRepository.persist(invoiceNumberGenerationSequence);
|
79 |
invoiceNumberGenerationSequenceRepository.persist(invoiceNumberGenerationSequence);
|
| 85 |
LOGGER.info("invoiceNumberSequence {}", invoiceNumberGenerationSequence.getSequence());
|
80 |
LOGGER.info("invoiceNumberSequence {}", invoiceNumberGenerationSequence.getSequence());
|
| 86 |
}
|
81 |
}
|
| 87 |
|
82 |
|
| 88 |
@Ignore
|
83 |
/*@Ignore
|
| 89 |
public void testAddPriceDropAmountToWallet() {
|
84 |
public void testAddPriceDropAmountToWallet() {
|
| 90 |
priceDropService.addPriceDropAmountToWallet();
|
85 |
priceDropService.addPriceDropAmountToWallet();
|
| 91 |
}
|
86 |
}
|
| 92 |
|
87 |
|
| 93 |
@Ignore
|
88 |
@Ignore
|
| Line 103... |
Line 98... |
| 103 |
}
|
98 |
}
|
| 104 |
|
99 |
|
| 105 |
@Ignore
|
100 |
@Ignore
|
| 106 |
public void testIgstTaxRate() throws ProfitMandiBusinessException{
|
101 |
public void testIgstTaxRate() throws ProfitMandiBusinessException{
|
| 107 |
LOGGER.info("igstTaxRate {}", Utils.getIgstTaxRate(Arrays.asList(1,2)));
|
102 |
LOGGER.info("igstTaxRate {}", Utils.getIgstTaxRate(Arrays.asList(1,2)));
|
| 108 |
}
|
103 |
}*/
|
| 109 |
|
104 |
|
| 110 |
}
|
105 |
}
|