vpriscan
10/17/2017, 10:10 AMjstuyts-squins
10/17/2017, 10:10 AMopop
10/17/2017, 10:12 AMopop
10/17/2017, 10:12 AMMatt Jarvis
11/08/2017, 1:46 PMMatt Jarvis
11/08/2017, 1:56 PMMinty
11/08/2017, 1:56 PMMinty
11/08/2017, 1:56 PMnland
11/08/2017, 2:11 PMmenegatti
11/08/2017, 2:15 PMnland
11/08/2017, 2:16 PMmenegatti
11/08/2017, 2:16 PMmenegatti
11/08/2017, 2:17 PMmenegatti
11/08/2017, 2:17 PMmock-maker-inline
to a file src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker
and it workednland
11/08/2017, 2:18 PMnland
11/08/2017, 2:18 PMjava.lang.IllegalStateException: Could not initialize plugin: interface org.mockito.plugins.MockMaker
menegatti
11/08/2017, 2:19 PMnland
11/08/2017, 2:20 PMnland
11/08/2017, 2:22 PMKevin Janvier Chinabalire
11/08/2017, 5:38 PMjava.lang.NumberFormatException
i have even tried string.toLongOrNullradityagumay
11/09/2017, 2:13 AMbreak or continue jump across class boundary kotlin
this problem appears when i am going to use break or continue. inside lamda with receiver i create ‘letIn’
lamda with receiver code
fun letIn(componentName: String?, values: List<LifeService.Value?>?,
body: (String, List<LifeService.Value?>) -> Unit) {
if (!TextUtils.isEmpty(componentName) && (values != null && values.isNotEmpty())) {
body(componentName!!, values)
}
}
this sample code for it.
for (option in 0 until optionsSize) {
val component = optionsGroup?.options?.get(option)
component?.let {
with(component) {
letIn(presentation, values, { componentName, values ->
if (componentName == LifeComponentViewType.CHECKBOX) {
letIn(transformCheckBoxValues(optionsGroup), { data ->
dataSource?.push(componentName, ComponentDataCheckBoxCollection(name, data))
view.buildComponent(componentName)
// break or return doesnt work
})
} else {
dataSource?.push(componentName, ComponentDataCollection(name, values))
view.buildComponent(componentName)
}
})
}
}
}
because above code didnt work so i use imperative way.
for (option in 0 until optionsSize) {
val component = optionsGroup?.options?.get(option)
if (component != null) {
val presentation: String? = component.presentation
val values = component.values
if (!TextUtils.isEmpty(presentation)) {
if (presentation == LifeComponentViewType.CHECKBOX) {
val data = transformCheckBoxValues(optionsGroup)
if (data.isNotEmpty()) {
dataSource?.push(presentation, ComponentDataCheckBoxCollection(optionsGroup.name, data))
view.buildComponent(presentation)
return
}
} else {
dataSource?.push(presentation!!, ComponentDataCollection(component.name, values))
view.buildComponent(presentation!!)
}
} else {
return
}
}
}
does anyone have suggestions?radityagumay
11/09/2017, 2:31 AMradityagumay
11/09/2017, 2:35 AMMinty
11/09/2017, 8:39 AMMinty
11/09/2017, 8:39 AMshebsa
11/09/2017, 8:46 AMMinty
11/09/2017, 9:18 AMjson = String(buffer, "UTF-8")
Minty
11/09/2017, 9:18 AM