Skip to content

Commit b74d1e1

Browse files
committed
test fixes, version changed to RC-2
1 parent 004a2f1 commit b74d1e1

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33

4-
version '1.3.2-RC1'
4+
version '1.3.2-RC2'
55

66
buildscript {
77
project.ext {

src/main/kotlin/org/droidmate/explorationModel/retention/loading/ModelParser.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ object ModelParser{
5151
/** returning the model map of origId->newId for states and widgets */
5252
suspend fun loadAndRepair(config: ModelConfig,
5353
modelProvider: (ModelConfig)->Model = {Model.emptyModel(config)},
54-
sequential: Boolean = true): Triple<Model, Map<ConcreteId,ConcreteId>,Map<ConcreteId,ConcreteId>>{
54+
sequential: Boolean = true,
55+
enablePrint: Boolean = false): Triple<Model, Map<ConcreteId,ConcreteId>,Map<ConcreteId,ConcreteId>>{
5556
val parser = if (sequential)
56-
ModelParserS(config, compatibilityMode = true, enablePrint = false, reader = ContentReader(config), enableChecks = true, modelProvider = modelProvider)
57+
ModelParserS(config, compatibilityMode = true, enablePrint = enablePrint, reader = ContentReader(config), enableChecks = true, modelProvider = modelProvider)
5758
else
58-
ModelParserP(config, compatibilityMode = true, enablePrint = false, reader = ContentReader(config), enableChecks = true, modelProvider = modelProvider)
59+
ModelParserP(config, compatibilityMode = true, enablePrint = enablePrint, reader = ContentReader(config), enableChecks = true, modelProvider = modelProvider)
5960

6061
val model = parser.loadModel(LinkedList(), emptyMap())
6162
logger.info("model parsing complete '${config.appName}' : $model, state repairs = ${parser.stateMap.size}, widget repairs = ${parser.widgetMap.size}")
@@ -158,7 +159,7 @@ internal abstract class ModelParserI<T,S,W>: ParserI<T, Pair<Interaction, State>
158159

159160
/** parse a single action this function is called in the processor either asynchronous (Deferred) or sequential (blocking) */
160161
suspend fun parseAction(actionS: List<String>): Pair<Interaction, State> {
161-
if(enablePrint) println("\n\t ---> parse action $actionS")
162+
if(enablePrint) logger.trace("\n\t ---> parse action $actionS")
162163
val resId = ConcreteId.fromString(actionS[Interaction.resStateIdx])!!
163164
val resState = stateParser.queue.computeIfAbsent(resId, stateParser.parseIfAbsent(coroutineContext)).getState()
164165
val targetWidgetId = widgetParser.fixedWidgetId(actionS[Interaction.widgetIdx])

src/test/kotlin/org/droidmate/explorationModel/ModelTester.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ModelTester: TestI, TestModel by DefaultTestModel() {
2828
val emptyWidget = Widget.emptyWidget
2929
expect(parentWidget.configId.toString(), "20ef5802-33dc-310b-8efc-c791586ede85") // quickFix due to new UiElementP constructor
3030
expect(emptyWidget.configId, parentWidget.configId)
31-
expect(parentWidget.id.toString(),"4d910bd0-9ce1-32bf-b162-4e5a743620b2_${parentWidget.configId}")
31+
expect(parentWidget.id.toString(),"f3290220-b5dc-3665-b30e-d533f658d117_${parentWidget.configId}")
3232
expect(testWidget.parentId, emptyWidget.id)
3333

3434
expect(testWidget.configId, UUID.fromString("5d802df8-481b-3882-9c3b-95ea87b08a03"))

src/test/kotlin/org/droidmate/explorationModel/TestModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ internal class DefaultTestModel: TestModel {
4646
override val testWidget: Widget by lazy{ super.testWidget }
4747
override val parentWidget: Widget by lazy{ super.parentWidget }
4848

49-
override val testWidgetDumpString = "771eb696-344f-3290-81ed-dc88af7ab7e4_5d802df8-481b-3882-9c3b-95ea87b08a03;" +
49+
override val testWidgetDumpString = "1db4c18e-a236-35af-b51d-f9a0bfbe8847_5d802df8-481b-3882-9c3b-95ea87b08a03;" +
5050
"class-mock;text-mock;Dummy-hintText;description-mock;0;disabled;false;11:136:81:51;11:136:81:51;[];true;true;true;disabled;" +
5151
"0;0;false;false;false;false;package-mock;0;resourceId-mock;false;false;[11:136:81:51];No-xPath"
5252
}

0 commit comments

Comments
 (0)