Revision 45164
Added by Claudio Atzori about 7 years ago
DatabaseUtilsTest.java | ||
---|---|---|
111 | 111 |
|
112 | 112 |
when(jdbcTemplate.queryForList("SELECT * FROM information_schema.columns WHERE table_name = ?", new Object[] { TABLE })).thenReturn( |
113 | 113 |
Arrays.asList(MAP, MAP, MAP)); |
114 |
when(jdbcTemplate.queryForList("SELECT profileid FROM dnet_tables WHERE table_name='THE_TABLE' AND database_db_name='THE_DB'", String.class)) |
|
115 |
.thenReturn(Arrays.asList("1234")); |
|
114 |
//when(jdbcTemplate.queryForList("SELECT profileid FROM dnet_tables WHERE table_name='THE_TABLE' AND database_db_name='THE_DB'", String.class))
|
|
115 |
// .thenReturn(Arrays.asList("1234"));
|
|
116 | 116 |
|
117 | 117 |
when(dataSourceFactory.createDataSource(anyString())).thenReturn(dataSource); |
118 |
when(jdbcTemplate.getDataSource()).thenReturn(dataSource); |
|
118 |
//when(jdbcTemplate.getDataSource()).thenReturn(dataSource);
|
|
119 | 119 |
|
120 | 120 |
when(transactionTemplateFactory.createTransactionTemplate(dataSource)).thenReturn(transactionTemplate); |
121 | 121 |
|
Also available in: Unified diff
migrated to dnet45, using updated mockito version