Class org.syncany.tests.integration.plugins.TransferSettingsTest

8

tests

0

failures

0

ignored

0.105s

duration

100%

successful

Tests

Test Duration Result
createNewInvalidConnectionTO 0.018s passed
createNewValidConnectionTO 0.008s passed
testDeserializeCorrectClass 0.013s passed
testDeserializeWrongClass 0.013s passed
testEnumSettingInvalid 0.015s passed
testEnumSettingValid 0.005s passed
testGetSettingsAndManagerFromPlugin 0.015s passed
testRestore 0.018s passed

Standard output

<config>
   <machineName>syncanytest284569216</machineName>
   <connection class="org.syncany.plugins.dummy.DummyTransferSettings" type="dummy">
      <foo>foo-test</foo>
      <baz>baz</baz>
      <number>1234</number>
      <nest class="org.syncany.plugins.local.LocalTransferSettings" type="local">
         <path>/tmp/aaa4177946362217356763bbb</path>
      </nest>
   </connection>
</config>

Standard error

29-5-19 15:06:57.392 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:06:57.392 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
29-5-19 15:06:57.399 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:06:57.402 | org.syncany.plu | Test worker    | WARN : Missing mandatory field DummyTransferSettings#foo
29-5-19 15:06:57.406 | org.syncany.plu | Test worker    | SEVE : Unable to check if option(s) are valid.
java.lang.reflect.InvocationTargetException
	at jdk.internal.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.syncany.plugins.transfer.TransferSettings.isValid(TransferSettings.java:170)
	at org.syncany.tests.integration.plugins.TransferSettingsTest.createNewInvalidConnectionTO(TransferSettingsTest.java:129)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
	at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:40)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
	at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:80)
	at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:71)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:170)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:154)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:90)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:92)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$100(JUnitPlatformTestClassProcessor.java:77)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:73)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
	at com.sun.proxy.$Proxy5.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:131)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:155)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:137)
	at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.syncany.plugins.transfer.StorageException: Missing mandatory field DummyTransferSettings#foo
	at org.syncany.plugins.transfer.TransferSettings.validateRequiredFields(TransferSettings.java:213)
	... 71 more
29-5-19 15:06:57.412 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:06:57.412 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
29-5-19 15:06:57.427 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:06:57.427 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
29-5-19 15:06:57.433 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:06:57.443 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:06:57.444 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
29-5-19 15:06:57.462 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:06:57.462 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
29-5-19 15:06:57.467 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:06:57.476 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:06:57.476 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:06:57.480 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:06:57.480 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
29-5-19 15:06:57.490 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:06:57.493 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:06:57.493 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
29-5-19 15:06:57.499 | org.syncany.plu | Test worker    | FINE : Validating required fields
29-5-19 15:06:57.507 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.