Revision 48477
Added by Alessia Bardi almost 7 years ago
modules/dnet-openaire-exporter/trunk/src/test/java/eu/dnetlib/openaire/exporter/project/ProjectsControllerTest.java | ||
---|---|---|
7 | 7 |
import org.apache.commons.logging.Log; |
8 | 8 |
import org.apache.commons.logging.LogFactory; |
9 | 9 |
import org.junit.Before; |
10 |
import org.junit.Ignore; |
|
10 | 11 |
import org.junit.Test; |
11 | 12 |
import org.junit.runner.RunWith; |
12 | 13 |
import org.springframework.boot.test.context.SpringBootTest; |
... | ... | |
16 | 17 |
|
17 | 18 |
import static org.junit.Assert.assertEquals; |
18 | 19 |
|
20 |
@Ignore |
|
19 | 21 |
@SpringBootTest |
20 | 22 |
@RunWith(SpringJUnit4ClassRunner.class) |
21 | 23 |
public class ProjectsControllerTest { |
modules/dnet-openaire-exporter/trunk/src/main/java/eu/dnetlib/openaire/exporter/model/project/ProjectDetails.java | ||
---|---|---|
116 | 116 |
this.fundingPath = fundingPath; |
117 | 117 |
} |
118 | 118 |
|
119 |
public void setFundingPath(final List<String> fundingPath) { |
|
120 |
if(fundingPath != null && !fundingPath.isEmpty()) { |
|
121 |
this.fundingPath = fundingPath.toArray(new String[fundingPath.size()]); |
|
122 |
} |
|
123 |
} |
|
124 |
|
|
119 | 125 |
public static ProjectDetails fromJson(final String json) { |
120 | 126 |
return new Gson().fromJson(json, ProjectDetails.class); |
121 | 127 |
} |
Also available in: Unified diff
new setter with a list of funding info.
Controller test ignored as it requires a local postgres database.