Skip to content
Permalink
Browse files

moved from google code

  • Loading branch information...
maciejmikosik committed Sep 28, 2013
0 parents commit 2bd41283c657f92b6b22f12059139b06ea13fc67
Showing with 5,835 additions and 0 deletions.
  1. +15 −0 .classpath
  2. +2 −0 .gitignore
  3. +17 −0 .project
  4. +3 −0 .settings/org.eclipse.core.resources.prefs
  5. +3 −0 .settings/org.eclipse.core.runtime.prefs
  6. +377 −0 .settings/org.eclipse.jdt.core.prefs
  7. +116 −0 .settings/org.eclipse.jdt.ui.prefs
  8. +63 −0 build/build.sh
  9. BIN build/jarjar-1.4.jar
  10. +4 −0 build/jarjar-rules.txt
  11. +201 −0 build/license/LICENSE
  12. +8 −0 build/license/NOTICE
  13. +29 −0 build/license/asm-license.txt
  14. +201 −0 build/license/cglib-license.txt
  15. BIN dep/cglib-nodep-2.2.3.jar
  16. BIN dep/cglib-src-2.2.3.jar
  17. BIN dep/fest-assert-1.4-sources.jar
  18. BIN dep/fest-assert-1.4.jar
  19. BIN dep/fest-util-1.1.6-sources.jar
  20. BIN dep/fest-util-1.1.6.jar
  21. BIN dep/guava-15.0-sources.jar
  22. BIN dep/guava-15.0.jar
  23. BIN dep/hamcrest-all-1.3-sources.jar
  24. BIN dep/hamcrest-all-1.3.jar
  25. BIN dep/junit-4.11-sources.jar
  26. BIN dep/junit-4.11.jar
  27. BIN dep/mockito-all-1.9.5.jar
  28. BIN dep/objenesis-2.0-sources.jar
  29. BIN dep/objenesis-2.0.jar
  30. +131 −0 src/org/testory/Dummies.java
  31. +36 −0 src/org/testory/Formats.java
  32. +365 −0 src/org/testory/Testory.java
  33. +11 −0 src/org/testory/TestoryAssertionError.java
  34. +19 −0 src/org/testory/TestoryException.java
  35. +7 −0 src/org/testory/WhenEffect.java
  36. +16 −0 src/org/testory/common/Checks.java
  37. +5 −0 src/org/testory/common/Closure.java
  38. +24 −0 src/org/testory/common/Closures.java
  39. +52 −0 src/org/testory/common/Matchers.java
  40. +10 −0 src/org/testory/common/Nullable.java
  41. +42 −0 src/org/testory/common/Objects.java
  42. +23 −0 src/org/testory/common/Throwables.java
  43. +64 −0 src/org/testory/doc/TestoryDemo.java
  44. +242 −0 src/org/testory/doc/TestoryTutorial.java
  45. +8 −0 src/org/testory/mock/Handler.java
  46. +96 −0 src/org/testory/mock/Invocation.java
  47. +33 −0 src/org/testory/mock/Invocations.java
  48. +156 −0 src/org/testory/mock/Mocks.java
  49. +49 −0 src/org/testory/mock/Typing.java
  50. +54 −0 test/org/testory/Describe_Testory_cloaking.java
  51. +53 −0 test/org/testory/Describe_Testory_given.java
  52. +307 −0 test/org/testory/Describe_Testory_givenTest.java
  53. +149 −0 test/org/testory/Describe_Testory_givenTimes.java
  54. +47 −0 test/org/testory/Describe_Testory_givenTry.java
  55. +86 −0 test/org/testory/Describe_Testory_then.java
  56. +83 −0 test/org/testory/Describe_Testory_thenEqual.java
  57. +339 −0 test/org/testory/Describe_Testory_thenReturned.java
  58. +286 −0 test/org/testory/Describe_Testory_thenThrown.java
  59. +109 −0 test/org/testory/Describe_Testory_when.java
  60. +21 −0 test/org/testory/common/Describe_Checks_checkArgument.java
  61. +31 −0 test/org/testory/common/Describe_Checks_checkNotNull.java
  62. +65 −0 test/org/testory/common/Describe_Closures_invoked.java
  63. +295 −0 test/org/testory/common/Describe_Matchers.java
  64. +82 −0 test/org/testory/common/Describe_Objects_areEqual.java
  65. +250 −0 test/org/testory/common/Describe_Objects_areEqualDeep.java
  66. +52 −0 test/org/testory/common/Describe_Throwables_gently.java
  67. +5 −0 test/org/testory/mock/$AbstractClassWithAbstractMethod.java
  68. +5 −0 test/org/testory/mock/$AbstractClassWithProtectedAbstractMethod.java
  69. +3 −0 test/org/testory/mock/$ConcreteClass.java
  70. +7 −0 test/org/testory/mock/$ConcreteClassWithClone.java
  71. +5 −0 test/org/testory/mock/$ConcreteClassWithFinalize.java
  72. +5 −0 test/org/testory/mock/$ConcreteClassWithPackagePrivateMethod.java
  73. +5 −0 test/org/testory/mock/$ConcreteClassWithPrivateConstructorWithArguments.java
  74. +5 −0 test/org/testory/mock/$ConcreteClassWithPrivateDefaultConstructor.java
  75. +3 −0 test/org/testory/mock/$FinalClass.java
  76. +5 −0 test/org/testory/mock/$InterfaceA.java
  77. +5 −0 test/org/testory/mock/$InterfaceB.java
  78. +5 −0 test/org/testory/mock/$InterfaceC.java
  79. +357 −0 test/org/testory/mock/Describe_Invocation.java
  80. +73 −0 test/org/testory/mock/Describe_Invocations_invoke.java
  81. +64 −0 test/org/testory/mock/Describe_Invocations_on.java
  82. +355 −0 test/org/testory/mock/Describe_Mock.java
  83. +165 −0 test/org/testory/mock/Describe_Typing.java
  84. +26 −0 test/org/testory/test/TestUtils.java
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="lib" path="dep/cglib-nodep-2.2.3.jar" sourcepath="dep/cglib-src-2.2.3.jar"/>
<classpathentry kind="lib" path="dep/fest-assert-1.4.jar" sourcepath="dep/fest-assert-1.4-sources.jar"/>
<classpathentry kind="lib" path="dep/fest-util-1.1.6.jar" sourcepath="dep/fest-util-1.1.6-sources.jar"/>
<classpathentry kind="lib" path="dep/guava-15.0.jar" sourcepath="dep/guava-15.0-sources.jar"/>
<classpathentry kind="lib" path="dep/hamcrest-all-1.3.jar" sourcepath="dep/hamcrest-all-1.3-sources.jar"/>
<classpathentry kind="lib" path="dep/junit-4.11.jar" sourcepath="dep/junit-4.11-sources.jar"/>
<classpathentry kind="lib" path="dep/mockito-all-1.9.5.jar"/>
<classpathentry kind="lib" path="dep/objenesis-2.0.jar" sourcepath="dep/objenesis-2.0-sources.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
@@ -0,0 +1,2 @@
bin
build/tmp
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>testory</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
@@ -0,0 +1,3 @@
#Wed Jul 22 13:03:39 CEST 2009
eclipse.preferences.version=1
encoding/<project>=UTF-8
@@ -0,0 +1,3 @@
#Wed Jul 22 13:03:39 CEST 2009
eclipse.preferences.version=1
line.separator=\n

Large diffs are not rendered by default.

@@ -0,0 +1,116 @@
#Sat Aug 13 18:10:42 CEST 2011
cleanup.add_default_serial_version_id=true
cleanup.add_generated_serial_version_id=false
cleanup.add_missing_annotations=true
cleanup.add_missing_deprecated_annotations=true
cleanup.add_missing_methods=false
cleanup.add_missing_nls_tags=false
cleanup.add_missing_override_annotations=true
cleanup.add_missing_override_annotations_interface_methods=true
cleanup.add_serial_version_id=false
cleanup.always_use_blocks=true
cleanup.always_use_parentheses_in_expressions=false
cleanup.always_use_this_for_non_static_field_access=false
cleanup.always_use_this_for_non_static_method_access=false
cleanup.convert_to_enhanced_for_loop=false
cleanup.correct_indentation=false
cleanup.format_source_code=false
cleanup.format_source_code_changes_only=false
cleanup.make_local_variable_final=true
cleanup.make_parameters_final=false
cleanup.make_private_fields_final=true
cleanup.make_type_abstract_if_missing_method=false
cleanup.make_variable_declarations_final=false
cleanup.never_use_blocks=false
cleanup.never_use_parentheses_in_expressions=true
cleanup.organize_imports=false
cleanup.qualify_static_field_accesses_with_declaring_class=false
cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
cleanup.qualify_static_member_accesses_with_declaring_class=true
cleanup.qualify_static_method_accesses_with_declaring_class=false
cleanup.remove_private_constructors=true
cleanup.remove_trailing_whitespaces=false
cleanup.remove_trailing_whitespaces_all=true
cleanup.remove_trailing_whitespaces_ignore_empty=false
cleanup.remove_unnecessary_casts=true
cleanup.remove_unnecessary_nls_tags=true
cleanup.remove_unused_imports=true
cleanup.remove_unused_local_variables=false
cleanup.remove_unused_private_fields=true
cleanup.remove_unused_private_members=false
cleanup.remove_unused_private_methods=true
cleanup.remove_unused_private_types=true
cleanup.sort_members=false
cleanup.sort_members_all=false
cleanup.use_blocks=false
cleanup.use_blocks_only_for_return_and_throw=false
cleanup.use_parentheses_in_expressions=false
cleanup.use_this_for_non_static_field_access=false
cleanup.use_this_for_non_static_field_access_only_if_necessary=true
cleanup.use_this_for_non_static_method_access=false
cleanup.use_this_for_non_static_method_access_only_if_necessary=true
cleanup_profile=org.eclipse.jdt.ui.default.eclipse_clean_up_profile
cleanup_settings_version=2
eclipse.preferences.version=1
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_fafkulec
formatter_settings_version=12
org.eclipse.jdt.ui.exception.name=e
org.eclipse.jdt.ui.gettersetter.use.is=true
org.eclipse.jdt.ui.javadoc=false
org.eclipse.jdt.ui.keywordthis=false
org.eclipse.jdt.ui.overrideannotation=false
org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment"/><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock"/><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody"/><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody"/><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
sp_cleanup.add_default_serial_version_id=true
sp_cleanup.add_generated_serial_version_id=false
sp_cleanup.add_missing_annotations=true
sp_cleanup.add_missing_deprecated_annotations=true
sp_cleanup.add_missing_methods=false
sp_cleanup.add_missing_nls_tags=false
sp_cleanup.add_missing_override_annotations=false
sp_cleanup.add_missing_override_annotations_interface_methods=false
sp_cleanup.add_serial_version_id=false
sp_cleanup.always_use_blocks=true
sp_cleanup.always_use_parentheses_in_expressions=false
sp_cleanup.always_use_this_for_non_static_field_access=false
sp_cleanup.always_use_this_for_non_static_method_access=false
sp_cleanup.convert_to_enhanced_for_loop=true
sp_cleanup.correct_indentation=true
sp_cleanup.format_source_code=true
sp_cleanup.format_source_code_changes_only=false
sp_cleanup.make_local_variable_final=false
sp_cleanup.make_parameters_final=false
sp_cleanup.make_private_fields_final=true
sp_cleanup.make_type_abstract_if_missing_method=false
sp_cleanup.make_variable_declarations_final=true
sp_cleanup.never_use_blocks=false
sp_cleanup.never_use_parentheses_in_expressions=true
sp_cleanup.on_save_use_additional_actions=true
sp_cleanup.organize_imports=true
sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
sp_cleanup.remove_private_constructors=true
sp_cleanup.remove_trailing_whitespaces=true
sp_cleanup.remove_trailing_whitespaces_all=true
sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
sp_cleanup.remove_unnecessary_casts=true
sp_cleanup.remove_unnecessary_nls_tags=false
sp_cleanup.remove_unused_imports=true
sp_cleanup.remove_unused_local_variables=false
sp_cleanup.remove_unused_private_fields=true
sp_cleanup.remove_unused_private_members=false
sp_cleanup.remove_unused_private_methods=true
sp_cleanup.remove_unused_private_types=true
sp_cleanup.sort_members=false
sp_cleanup.sort_members_all=false
sp_cleanup.use_blocks=true
sp_cleanup.use_blocks_only_for_return_and_throw=false
sp_cleanup.use_parentheses_in_expressions=false
sp_cleanup.use_this_for_non_static_field_access=false
sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
sp_cleanup.use_this_for_non_static_method_access=false
sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
@@ -0,0 +1,63 @@
#!/bin/bash

#cleanup
rm \
--recursive \
--force \
./tmp
mkdir \
--parents \
./tmp

#compile
mkdir \
--parents \
./tmp/bin
javac \
-classpath "./../dep/cglib-nodep-2.2.3.jar:./../dep/objenesis-2.0.jar" \
-sourcepath "./../src" \
-d "./tmp/bin" \
./../src/org/testory/Testory.java

#copy sources
cp \
--recursive \
./../src/. \
./tmp/bin

#copy dependencies
unzip \
./../dep/cglib-nodep-2.2.3.jar \
-d ./tmp/bin \
net/*
unzip \
./../dep/objenesis-2.0.jar \
-d ./tmp/bin \
org/*

#copy license files
cp \
--recursive \
./license/. \
./tmp/bin

#zip jar
cd ./tmp/bin
zip \
--recurse-paths \
./../testory.jar \
./*
cd ./../..

#refactor dependencies
java \
-jar jarjar-1.4.jar \
process jarjar-rules.txt \
./tmp/testory.jar \
./tmp/testory.jar

#cleanup
rm \
--recursive \
--force \
./tmp/bin
BIN +118 KB build/jarjar-1.4.jar
Binary file not shown.
@@ -0,0 +1,4 @@
rule net.sf.cglib.**.* org.testory.external.net.sf.cglib.@1.$@2
rule net.sf.cglib.* org.testory.external.net.sf.cglib.$@1
rule org.objenesis.**.* org.testory.external.org.objenesis.@1.$@2
rule org.objenesis.* org.testory.external.org.objenesis.$@1

0 comments on commit 2bd4128

Please sign in to comment.
You can’t perform that action at this time.