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

8

tests

0

failures

0

ignored

0.125s

duration

100%

successful

Tests

Test Duration Result
createNewInvalidConnectionTO 0.015s passed
createNewValidConnectionTO 0.007s passed
testDeserializeCorrectClass 0.040s passed
testDeserializeWrongClass 0.021s passed
testEnumSettingInvalid 0.007s passed
testEnumSettingValid 0.008s passed
testGetSettingsAndManagerFromPlugin 0.005s passed
testRestore 0.022s passed

Standard output

<config>
   <machineName>syncanytest212547854</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/aaa4050154394699500335bbb</path>
      </nest>
   </connection>
</config>

Standard error

16-2-17 8:21:00.436 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.436 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.473 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.479 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.479 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.500 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.501 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.507 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.507 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.516 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.516 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.523 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.523 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.529 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.541 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.541 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.548 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.548 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.550 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.555 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.555 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
16-2-17 8:21:00.565 | org.syncany.plu | Test worker    | FINE : Validating required fields
16-2-17 8:21:00.565 | org.syncany.plu | Test worker    | WARN : Missing mandatory field DummyTransferSettings#foo
16-2-17 8:21:00.565 | org.syncany.plu | Test worker    | SEVE : Unable to check if option(s) are valid.
java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.syncany.plugins.transfer.TransferSettings.isValid(TransferSettings.java:171)
	at org.syncany.tests.integration.plugins.TransferSettingsTest.createNewInvalidConnectionTO(TransferSettingsTest.java:129)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:69)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:48)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:86)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:49)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:69)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:48)
	at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
	at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
	at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:105)
	at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360)
	at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.syncany.plugins.transfer.StorageException: Missing mandatory field DummyTransferSettings#foo
	at org.syncany.plugins.transfer.TransferSettings.validateRequiredFields(TransferSettings.java:214)
	... 47 more