Permalink
Browse files

Initial import of source

  • Loading branch information...
0 parents commit 599219e87f2c2f6660314bcc3b4bd996dbcc16cf Janne Härkönen committed Aug 26, 2011
Showing with 6,050 additions and 0 deletions.
  1. +13 −0 COPYRIGHT.txt
  2. +67 −0 jarjar.py
  3. BIN jarjar/jarjar-1.0.jar
  4. +27 −0 jarjar/rules.txt
  5. +160 −0 pom.xml
  6. +25 −0 src/main/java/JavaTools.java
  7. +28 −0 src/main/java/org/robotframework/javalib/annotation/ArgumentNames.java
  8. +28 −0 src/main/java/org/robotframework/javalib/annotation/RobotKeyword.java
  9. +27 −0 src/main/java/org/robotframework/javalib/annotation/RobotKeywords.java
  10. +27 −0 src/main/java/org/robotframework/javalib/aop/KeywordExecutionAdvisor.java
  11. +32 −0 src/main/java/org/robotframework/javalib/beans/annotation/AnnotationBasedKeywordFilter.java
  12. +67 −0 src/main/java/org/robotframework/javalib/beans/annotation/AnnotationKeywordExtractor.java
  13. +25 −0 src/main/java/org/robotframework/javalib/beans/annotation/IBeanLoader.java
  14. +25 −0 src/main/java/org/robotframework/javalib/beans/annotation/IKeywordExtractor.java
  15. +42 −0 src/main/java/org/robotframework/javalib/beans/annotation/KeywordBeanLoader.java
  16. +40 −0 src/main/java/org/robotframework/javalib/beans/classpath/InterfaceBasedKeywordFilter.java
  17. +74 −0 src/main/java/org/robotframework/javalib/beans/common/BasicKeywordFilter.java
  18. +24 −0 src/main/java/org/robotframework/javalib/beans/common/ClassFinder.java
  19. +34 −0 src/main/java/org/robotframework/javalib/beans/common/ClassNameResolver.java
  20. +118 −0 src/main/java/org/robotframework/javalib/beans/common/DefaultClassFinder.java
  21. +54 −0 src/main/java/org/robotframework/javalib/beans/common/DefaultClassNameResolver.java
  22. +31 −0 src/main/java/org/robotframework/javalib/beans/common/IClassFilter.java
  23. +36 −0 src/main/java/org/robotframework/javalib/beans/common/IKeywordBeanDefintionReader.java
  24. +70 −0 src/main/java/org/robotframework/javalib/beans/common/KeywordBeanDefinitionReader.java
  25. +78 −0 src/main/java/org/robotframework/javalib/beans/common/URLFileFactory.java
  26. +81 −0 src/main/java/org/robotframework/javalib/beans/spring/KeywordsXmlBeanDefinitionReader.java
  27. +69 −0 src/main/java/org/robotframework/javalib/context/KeywordApplicationContext.java
  28. +86 −0 src/main/java/org/robotframework/javalib/factory/AnnotationKeywordFactory.java
  29. +63 −0 src/main/java/org/robotframework/javalib/factory/ApplicationContextKeywordFactory.java
  30. +145 −0 src/main/java/org/robotframework/javalib/factory/CompositeKeywordFactory.java
  31. +41 −0 src/main/java/org/robotframework/javalib/factory/KeywordFactory.java
  32. +35 −0 src/main/java/org/robotframework/javalib/keyword/ArgumentCheckingKeyword.java
  33. +52 −0 src/main/java/org/robotframework/javalib/keyword/CollisionKeyword.java
  34. +22 −0 src/main/java/org/robotframework/javalib/keyword/DocumentedKeyword.java
  35. +30 −0 src/main/java/org/robotframework/javalib/keyword/ExpectedArgumentCountAware.java
  36. +34 −0 src/main/java/org/robotframework/javalib/keyword/Keyword.java
  37. +118 −0 src/main/java/org/robotframework/javalib/keyword/KeywordMap.java
  38. +31 −0 src/main/java/org/robotframework/javalib/keyword/KeywordNameCollisionException.java
  39. +32 −0 src/main/java/org/robotframework/javalib/keyword/PreparableKeyword.java
  40. +23 −0 src/main/java/org/robotframework/javalib/keyword/ZeroArgumentKeyword.java
  41. +98 −0 src/main/java/org/robotframework/javalib/library/AnnotationLibrary.java
  42. +104 −0 src/main/java/org/robotframework/javalib/library/ClassPathLibrary.java
  43. +81 −0 src/main/java/org/robotframework/javalib/library/CompositeLibrary.java
  44. +22 −0 src/main/java/org/robotframework/javalib/library/KeywordDocumentationRepository.java
  45. +84 −0 src/main/java/org/robotframework/javalib/library/KeywordFactoryBasedLibrary.java
  46. +39 −0 src/main/java/org/robotframework/javalib/library/RobotJavaLibrary.java
  47. +85 −0 src/main/java/org/robotframework/javalib/library/SpringLibrary.java
  48. +75 −0 src/main/java/org/robotframework/javalib/reflection/ArgumentGrouper.java
  49. +21 −0 src/main/java/org/robotframework/javalib/reflection/IArgumentGrouper.java
  50. +23 −0 src/main/java/org/robotframework/javalib/reflection/IKeywordInvoker.java
  51. +70 −0 src/main/java/org/robotframework/javalib/reflection/KeywordInvoker.java
  52. +69 −0 src/main/java/org/robotframework/javalib/util/ArrayUtil.java
  53. +21 −0 src/main/java/org/robotframework/javalib/util/IKeywordNameNormalizer.java
  54. +36 −0 src/main/java/org/robotframework/javalib/util/KeywordNameNormalizer.java
  55. +90 −0 src/main/java/org/robotframework/javalib/util/Logger.java
  56. +89 −0 src/main/java/org/robotframework/javalib/util/StdStreamRedirecter.java
  57. +2 −0 src/main/resources/commons-logging.properties
  58. +26 −0 src/test/java/com/some/own/keyword/AnnotatedKeywords.java
  59. +19 −0 src/test/java/my/same/keyword/AnnotatedKeywords.java
  60. +24 −0 src/test/java/org/robotframework/javalib/beans/annotation/AnnotationBasedKeywordFilterTest.java
  61. +50 −0 ...t/java/org/robotframework/javalib/beans/annotation/AnnotationKeywordExtractorIntegrationTest.java
  62. +96 −0 src/test/java/org/robotframework/javalib/beans/annotation/AnnotationKeywordExtractorTest.java
  63. +61 −0 src/test/java/org/robotframework/javalib/beans/annotation/KeywordBeanLoaderTest.java
  64. +24 −0 src/test/java/org/robotframework/javalib/beans/classpath/InterfaceBasedKeywordFilterTest.java
  65. +9 −0 src/test/java/org/robotframework/javalib/beans/common/AllAcceptingFilter.java
  66. +40 −0 src/test/java/org/robotframework/javalib/beans/common/BasicKeywordFilterTest.java
  67. +16 −0 src/test/java/org/robotframework/javalib/beans/common/ClassFinderIntegrationTest.java
  68. +41 −0 ...test/java/org/robotframework/javalib/beans/common/DefaultClassFinderCreatingURLResourcesTest.java
  69. +30 −0 src/test/java/org/robotframework/javalib/beans/common/DefaultClassFinderIntegrationTest.java
  70. +79 −0 src/test/java/org/robotframework/javalib/beans/common/DefaultClassFinderTest.java
  71. +57 −0 src/test/java/org/robotframework/javalib/beans/common/DefaultClassNameResolverTest.java
  72. +38 −0 src/test/java/org/robotframework/javalib/beans/common/FileServer.java
  73. +39 −0 ...test/java/org/robotframework/javalib/beans/common/KeywordBeanDefinitionReaderIntegrationTest.java
  74. +123 −0 src/test/java/org/robotframework/javalib/beans/common/KeywordBeanDefinitionReaderTest.java
  75. +86 −0 src/test/java/org/robotframework/javalib/beans/common/URLFileFactoryIntegrationTest.java
  76. +28 −0 .../java/org/robotframework/javalib/beans/spring/KeywordsXmlBeanDefinitionReaderIntegrationTest.java
  77. +77 −0 src/test/java/org/robotframework/javalib/beans/spring/KeywordsXmlBeanDefinitionReaderTest.java
  78. +22 −0 src/test/java/org/robotframework/javalib/context/KeywordApplicationContextIntegrationTest.java
  79. +93 −0 src/test/java/org/robotframework/javalib/context/KeywordApplicationContextTest.java
  80. +33 −0 src/test/java/org/robotframework/javalib/factory/AnnotationKeywordFactoryIntegrationTest.java
  81. +70 −0 src/test/java/org/robotframework/javalib/factory/AnnotationKeywordFactoryTest.java
  82. +41 −0 src/test/java/org/robotframework/javalib/factory/ApplicationContextKeywordFactoryTest.java
  83. +70 −0 src/test/java/org/robotframework/javalib/factory/CompositeKeywordFactoryIntegrationTest.java
  84. +104 −0 src/test/java/org/robotframework/javalib/factory/CompositeKeywordFactoryTest.java
  85. +38 −0 src/test/java/org/robotframework/javalib/keyword/AnnotatedKeywords.java
  86. +66 −0 src/test/java/org/robotframework/javalib/keyword/ArgumentCheckingKeywordTest.java
  87. +17 −0 src/test/java/org/robotframework/javalib/keyword/CollisionKeywordTest.java
  88. +9 −0 src/test/java/org/robotframework/javalib/keyword/ConflictingKeyword.java
  89. +10 −0 src/test/java/org/robotframework/javalib/keyword/EmptyKeyword.java
  90. +72 −0 src/test/java/org/robotframework/javalib/keyword/KeywordMapTest.java
  91. +77 −0 src/test/java/org/robotframework/javalib/keyword/PreparableKeywordTest.java
  92. +9 −0 src/test/java/org/robotframework/javalib/keyword/SpringKeyword.java
  93. +55 −0 src/test/java/org/robotframework/javalib/library/AnnotationLibraryIntegrationTest.java
  94. +57 −0 src/test/java/org/robotframework/javalib/library/AnnotationLibraryLoadingBeansTest.java
  95. +32 −0 .../robotframework/javalib/library/AnnotationLibraryMultipleKeywordsWithSameNameIntegrationTest.java
  96. +27 −0 .../java/org/robotframework/javalib/library/AnnotationLibraryMultipleSearchPathsIntegrationTest.java
  97. +61 −0 src/test/java/org/robotframework/javalib/library/AnnotationLibraryTest.java
  98. +50 −0 src/test/java/org/robotframework/javalib/library/AnnotationLibraryWithMetaDataTest.java
  99. +116 −0 src/test/java/org/robotframework/javalib/library/ClassLoadingIntegrationTest.java
  100. +43 −0 src/test/java/org/robotframework/javalib/library/ClassPathLibraryIntegrationTest.java
  101. +67 −0 src/test/java/org/robotframework/javalib/library/CompositeLibraryIntegrationTest.java
  102. +114 −0 src/test/java/org/robotframework/javalib/library/KeywordFactoryBasedLibraryTest.java
  103. +32 −0 src/test/java/org/robotframework/javalib/library/MockClassLoader.java
  104. +40 −0 src/test/java/org/robotframework/javalib/library/SpringLibraryIntegrationTest.java
  105. +33 −0 src/test/java/org/robotframework/javalib/mocks/KeywordFactoryWithOneKeyword.java
  106. +15 −0 src/test/java/org/robotframework/javalib/mocks/RecordingKeyword.java
  107. +106 −0 src/test/java/org/robotframework/javalib/reflection/ArgumentGrouperTest.java
  108. +67 −0 src/test/java/org/robotframework/javalib/reflection/KeywordInvokerGroupingArgumentsTest.java
  109. +27 −0 src/test/java/org/robotframework/javalib/reflection/KeywordInvokerHandlingInvocationsTest.java
  110. +68 −0 src/test/java/org/robotframework/javalib/reflection/KeywordInvokerHandlingParameterNamesTest.java
  111. +30 −0 src/test/java/org/robotframework/javalib/reflection/KeywordInvokerIntegrationTest.java
  112. +50 −0 src/test/java/org/robotframework/javalib/reflection/KeywordInvokerTestCase.java
  113. +17 −0 src/test/java/org/robotframework/javalib/robottests/JavalibCoreTestLibrary.java
  114. +10 −0 src/test/java/org/robotframework/javalib/util/ArrayUtilTest.java
  115. +14 −0 src/test/java/org/robotframework/javalib/util/KeywordNameNormalizerTest.java
  116. +51 −0 src/test/java/org/robotframework/javalib/util/StdOutAndErrRedirecterTest.java
  117. +1 −0 src/test/resources/network_file.txt
  118. +9 −0 src/test/resources/org/robotframework/test/keywords.xml
  119. +22 −0 src/test/resources/robot-tests/annotationlibrary.tsv
  120. +18 −0 src/test/resources/robot-tests/annotationlibrarywithmultiplepatterns.tsv
  121. +7 −0 src/test/resources/robot-tests/annotationlibrarywithmultiplepatternsandconflictingkeywordnames.tsv
  122. +12 −0 src/test/resources/robot-tests/classpathlibrary.tsv
  123. +17 −0 src/test/resources/robot-tests/compositelibrary.tsv
  124. +10 −0 src/test/resources/robot-tests/javatools.tsv
  125. +34 −0 src/test/resources/robot-tests/run.rb
  126. +10 −0 src/test/resources/robot-tests/springlibrary.tsv
  127. +11 −0 src/test/resources/robot-tests/variables.py
  128. BIN src/test/resources/test.jar
@@ -0,0 +1,13 @@
+Copyright 2008 Nokia Siemens Networks Oyj
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
@@ -0,0 +1,67 @@
+#!/usr/bin/env python
+
+import glob
+import os
+import subprocess
+import sys
+import zipfile
+import shutil
+
+def jarjar_dist_jar():
+ curdir = os.path.dirname(os.path.abspath(__file__))
+ targetdir = os.path.join(curdir, 'target')
+ jarpath = glob.glob(os.path.join(targetdir,
+ 'javalib-core-*-jar-with-dependencies.jar'))[0]
+ mf_path = extract_manifest(jarpath, targetdir)
+ jarjar(curdir, jarpath)
+ tmpdir = os.path.join(targetdir, 'tmp')
+ if os.path.exists(tmpdir):
+ shutil.rmtree(tmpdir)
+ rmi_compile(jarpath, tmpdir)
+ rejar(jarpath, mf_path, tmpdir)
+ shutil.rmtree(tmpdir)
+ os.remove(mf_path)
+
+def call(cmd):
+ print " ".join(cmd)
+ return subprocess.call(cmd)
+
+def jarjar(curdir, jarpath):
+ jarjardir = os.path.join(curdir, 'jarjar')
+ jarjarjar = os.path.join(jarjardir, 'jarjar-1.0.jar')
+ rules = os.path.join(jarjardir, 'rules.txt')
+ call(['java', '-jar', jarjarjar, 'process', rules, jarpath, jarpath])
+
+def extract_manifest(jarpath, targetdir):
+ zfobj = zipfile.ZipFile(jarpath)
+ for name in zfobj.namelist():
+ if name == 'META-INF/MANIFEST.MF':
+ mf_path = os.path.join(targetdir, 'MANIFEST.MF')
+ outfile = open(mf_path, 'wb')
+ outfile.write(zfobj.read(name))
+ outfile.close()
+ return mf_path
+
+def rmi_compile(jarpath, tmpdir):
+ unzip_file_into_dir(jarpath, tmpdir)
+ class_name = 'org.robotframework.jvmconnector.org.springframework.remoting.rmi.RmiInvocationWrapper'
+ call(['rmic', '-verbose', '-classpath', tmpdir, '-d', tmpdir, class_name])
+ call(['rmic', '-verbose', '-iiop', '-always', '-classpath', tmpdir, '-d',
+ tmpdir, class_name])
+
+def unzip_file_into_dir(file, dir):
+ os.mkdir(dir, 0777)
+ zfobj = zipfile.ZipFile(file)
+ for name in zfobj.namelist():
+ if name.endswith('/'):
+ os.makedirs(os.path.join(dir, name))
+ else:
+ outfile = open(os.path.join(dir, name), 'wb')
+ outfile.write(zfobj.read(name))
+ outfile.close()
+
+def rejar(jarpath, mf_path, dir):
+ call(['jar', 'cfm', jarpath, mf_path, '-C', dir, '.'])
+
+if __name__ == '__main__':
+ jarjar_dist_jar()
Binary file not shown.
@@ -0,0 +1,27 @@
+rule com.thoughtworks.** org.robotframework.jvmconnector.@0
+rule edu.emory.** org.robotframework.jvmconnector.@0
+rule junit.** org.robotframework.jvmconnector.@0
+rule org.aopalliance.** org.robotframework.jvmconnector.@0
+rule org.hamcrest.** org.robotframework.jvmconnector.@0
+rule org.junit.** org.robotframework.jvmconnector.@0
+rule org.laughingpanda.** org.robotframework.jvmconnector.@0
+rule org.apache.ws.commons.util.** org.robotframework.jvmconnector.@0
+rule org.apache.ws.commons.serialize.** org.robotframework.jvmconnector.@0
+rule org.apache.log.** org.robotframework.jvmconnector.@0
+rule org.apache.wml.** org.robotframework.jvmconnector.@0
+rule org.apache.xml.serialize.** org.robotframework.jvmconnector.@0
+rule org.apache.html.dom.** org.robotframework.jvmconnector.@0
+rule org.apache.commons.io.** org.robotframework.jvmconnector.@0
+rule org.apache.commons.codec.** org.robotframework.jvmconnector.@0
+rule org.apache.commons.logging.** org.robotframework.jvmconnector.@0
+rule org.apache.commons.collections.** org.robotframework.jvmconnector.@0
+rule org.apache.commons.httpclient.** org.robotframework.jvmconnector.@0
+rule org.apache.xmlcommons.** org.robotframework.jvmconnector.@0
+rule org.apache.log4j.** org.robotframework.jvmconnector.@0
+rule org.apache.avalon.framework.** org.robotframework.jvmconnector.@0
+rule org.apache.xmlrpc.** org.robotframework.jvmconnector.@0
+rule org.springframework.** org.robotframework.jvmconnector.@0
+rule javax.servlet.** org.robotframework.jvmconnector.@0
+zap org.w3c.dom.**
+zap org.xml.sax.**
+zap javax.xml.**
160 pom.xml
@@ -0,0 +1,160 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.robotframework</groupId>
+ <artifactId>javalib-core</artifactId>
+ <packaging>jar</packaging>
+ <version>0.8.2-SNAPSHOT</version>
+ <name>javalib-core</name>
+ <description>Base for implementing Java test libraries to Robot Framework</description>
+ <url>https://code.google.com/p/robotframework-javatools/</url>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <scm>
+ <url>https://robotframework-javatools.googlecode.com/svn/</url>
+ <connection>https://robotframework-javatools.googlecode.com/svn/</connection>
+ </scm>
+ <developers>
+ <developer>
+ <name>Robot Framework Developers</name>
+ <email>robotframework@gmail.com</email>
+ </developer>
+ </developers>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.5</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.1</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-core</artifactId>
+ <version>2.5.4</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-context</artifactId>
+ <version>2.5.4</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-aop</artifactId>
+ <version>2.5.4</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.thoughtworks.paranamer</groupId>
+ <artifactId>paranamer</artifactId>
+ <version>1.1.2</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>1.4</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>jmock</groupId>
+ <artifactId>jmock</artifactId>
+ <version>1.2.0</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>jmock</groupId>
+ <artifactId>jmock-cglib</artifactId>
+ <version>1.2.0</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring</artifactId>
+ <version>2.5.4</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty</artifactId>
+ <version>6.1.11</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-4</version>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <version>2.0</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.2</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <version>2.0</version>
+ </plugin>
+ </plugins>
+ </reporting>
+
+</project>
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2008 Nokia Siemens Networks Oyj
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import org.robotframework.javalib.annotation.RobotKeywords;
+import org.robotframework.javalib.library.AnnotationLibrary;
+
+@RobotKeywords
+public class JavaTools extends AnnotationLibrary {
+ public JavaTools() {
+ super("org/robotframework/javalib/keywords/*.class");
+ }
+}
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2008 Nokia Siemens Networks Oyj
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.robotframework.javalib.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.METHOD)
+public @interface ArgumentNames {
+ String[] value();
+}
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2008 Nokia Siemens Networks Oyj
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.robotframework.javalib.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.METHOD)
+public @interface RobotKeyword {
+ String value() default "";
+}
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2008 Nokia Siemens Networks Oyj
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.robotframework.javalib.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.TYPE)
+public @interface RobotKeywords {
+}
Oops, something went wrong.

0 comments on commit 599219e

Please sign in to comment.