Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions data/qc/noopTransform.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
all.lines = readLines("${runInfo}")
runDataFile.line = grep("^runDataFile", all.lines, value = TRUE);
runDataFile.props <- strsplit(runDataFile.line, "\t")[[1]]
run.data.file = runDataFile.props[2];
run.output.file = runDataFile.props[4];

run.data = read.delim(run.data.file, header=TRUE, sep="\t", quote="", check.names=FALSE);
run.data$TransformType = "${transformOperation}";
write.table(run.data, file=run.output.file, sep="\t", na="", row.names=FALSE, quote=TRUE, qmethod="double");
2 changes: 1 addition & 1 deletion src/org/labkey/test/tests/component/GridPanelTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private void createSmallSampleType() throws IOException, CommandException
FILTER_INT_COL.getName(), TestDataGenerator.randomInt(1, INT_MAX),
FILTER_STRING_COL.getName(), stringSets.get(setIndex++),
FILTER_DATE_COL.getName(), sampleSetDataGenerator.randomDateString(DateUtils.addWeeks(new Date(), -25), new Date()),
FILTER_BOOL_COL.getName(), sampleSetDataGenerator.randomBoolean())
FILTER_BOOL_COL.getName(), TestDataGenerator.randomBoolean())
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/org/labkey/test/util/TestDataGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ private Supplier<Object> getDefaultDataSupplier(PropertyDescriptor propertyDescr
case "double":
return () -> randomDouble(0, 20);
case "boolean":
return this::randomBoolean;
return TestDataGenerator::randomBoolean;
case "date":
case "datetime":
return () -> randomDateString(DateUtils.addWeeks(new Date(), -39), new Date());
Expand Down Expand Up @@ -797,7 +797,7 @@ public String randomDateString(String dateFormat, Date min, Date max)
return new SimpleDateFormat(dateFormat).format(date);
}

public boolean randomBoolean()
public static boolean randomBoolean()
{
return ThreadLocalRandom.current().nextBoolean();
}
Expand Down