此脚本将library(DT)
library(tidyverse)
dataTableOutput("irisTable")
output$irisTable <- renderDataTable(
iris %>% rowid_to_column("Row") %>% mutate(Row = ""),
rownames = FALSE,
extensions = "Select",
options = list(
columnDefs = list(list(className = "select-checkbox", targets = 0, orderable = FALSE)),
select = list(style = "multi", selector = "td:first-child")
))
js文件夹中的所有@Mock
private EntityManager em;
@Mock
private Vehicle vehicle;
@Mock
private Car car;
@Mock
private Query query;
@InjectMocks
private YourDAOClass yourDAOClass;
@Test
public void testMethod(){
List<Vehicle> someList = null;
when(em.createQuery(Mockito.anyString(), Mockito.any())).thenReturn(query);
when(query.getResultList()).thenReturn(someList);
assertThat(yourDAOClass.getData()).isNull()
}
文件编译到es6。这些都是单独保存的!路径保持不变,只有.js
变为./src
。这个很重要!我不想拥有./src/js
。
当我调用此任务时,每次编译所有./build/js
文件。但是,仅应编译当前更改的文件。但是如何?如何将其添加到任务中?
package.json(部分):
bundle.js
gulpfile.js:
.js