incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosv...@apache.org
Subject svn commit: r955667 [2/2] - in /incubator/bval/sandbox/jsr303-impl-bench: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/bval/ src/main/java/org/apache/bval/bench/ src/main/java/org/apache/bval/be...
Date Thu, 17 Jun 2010 16:30:59 GMT
Added: incubator/bval/sandbox/jsr303-impl-bench/src/test/java/org/apache/bval/bench/HibernateTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/jsr303-impl-bench/src/test/java/org/apache/bval/bench/HibernateTest.java?rev=955667&view=auto
==============================================================================
--- incubator/bval/sandbox/jsr303-impl-bench/src/test/java/org/apache/bval/bench/HibernateTest.java
(added)
+++ incubator/bval/sandbox/jsr303-impl-bench/src/test/java/org/apache/bval/bench/HibernateTest.java
Thu Jun 17 16:30:57 2010
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.apache.bval.bench;
+
+import javax.validation.Validation;
+import javax.validation.Validator;
+
+import org.hibernate.validator.HibernateValidator;
+import org.junit.AfterClass;
+
+/**
+ * Tests Hibernate Validator performance.
+ * 
+ * @author Carlos Vara
+ */
+public class HibernateTest extends AbstractBenchTest {
+
+    @Override
+    public Validator getValidatorInNewFactory() {
+        return Validation.byProvider(HibernateValidator.class).configure().buildValidatorFactory().getValidator();
+    }
+
+    @AfterClass
+    public static void printValidatorName() {
+        System.out.println("HIBERNATE");
+    }
+
+}

Propchange: incubator/bval/sandbox/jsr303-impl-bench/src/test/java/org/apache/bval/bench/HibernateTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/bval/sandbox/jsr303-impl-bench/src/test/resources/logback-test.xml
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/jsr303-impl-bench/src/test/resources/logback-test.xml?rev=955667&view=auto
==============================================================================
--- incubator/bval/sandbox/jsr303-impl-bench/src/test/resources/logback-test.xml (added)
+++ incubator/bval/sandbox/jsr303-impl-bench/src/test/resources/logback-test.xml Thu Jun 17
16:30:57 2010
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or
+    more contributor license agreements. See the NOTICE file
+    distributed with this work for additional information regarding
+    copyright ownership. The ASF licenses this file to you 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.
+-->
+<configuration>
+
+  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+    <layout class="ch.qos.logback.classic.PatternLayout">
+      <Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern>
+    </layout>
+  </appender>
+
+  <root level="error">
+    <appender-ref ref="STDOUT" />
+  </root>
+  
+</configuration>
\ No newline at end of file

Propchange: incubator/bval/sandbox/jsr303-impl-bench/src/test/resources/logback-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message