Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
Setting the hibernate.show_sql to true tells hibernate to Write all SQL statements to console. This is an alternative to setting the log category org.hibernate.SQL to debug. | |
So even if you set this property to false, make sure that you don't have the following category defined (or configured to use a console appender): | |
log4j.logger.org.hibernate.SQL=DEBUG | |
Also, make sure that you don't set the hibernate.show_sql programmatically to true when instancing your Configuration object. Hunt something like this: | |
Configuration cfg = new Configuration().configure(). | |
.setProperty("hibernate.show_sql", "true"); | |
Note that the setProperty(String propertyName, String value) takes as first parameter the full name of a configuration property i.e. hibernate.show_sql, not just show_sql. |
@Test | |
public void onBarcode_search_catalog() throws Exception { | |
Catalog catalog = mock(Catalog.class); | |
Screen screen = mock(Screen.class); | |
PointOfSale pointOfSale = new PointOfSale(catalog, screen); | |
pointOfSale.onBarcode("123"); | |
verify(catalog).search("123"); | |
} |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
{ | |
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"name": "hamcrest/hamcrest", | |
"version": "1.1.0", | |
"dist": { | |
"type": "zip", | |
"url": "https://hamcrest.googlecode.com/files/hamcrest-php-1.1.0.zip" |
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
#!/bin/bash | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 CODE-DIRECTORY" | |
exit 1 | |
fi | |
code_directory=$1 | |
if [ ! -d $code_directory ]; then |
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence | |
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" | |
version="1.0"> | |
<!-- derby --> |
<datasource jta="true" jndi-name="java:jboss/datasources/CopacoBillingDS" pool-name="CopacoBillingDS" enabled="true" use-ccm="true"> | |
<connection-url>jdbc:informix-sqli://10.13.200.41:9088/copaco_prueba01:informixserver=copacodb</connection-url> | |
<driver>informix-jdbc</driver> | |
<security> | |
<user-name>USER</user-name> | |
<password>PASS</password> | |
</security> | |
</datasource> |