This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn create-negocio | |
[preco quantidade data] | |
(assert (not (nil? data))) | |
(assert (> preco 0)) | |
(Negocio. data preco quantidade)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
========================================================================= | |
JBoss Bootstrap Environment | |
JBOSS_HOME: /Users/luizcosta/.rvm/gems/jruby-1.6.7@loreal-jruby/gems/torquebox-server-2.0.0.beta3-java/jboss | |
JAVA: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/java | |
JAVA_OPTS: -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
========================================================================= | |
JBoss Bootstrap Environment | |
JBOSS_HOME: /Users/luizcosta/.rvm/gems/jruby-1.6.7@loreal-jruby/gems/torquebox-server-2.0.0.beta3-java/jboss | |
JAVA: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/java | |
JAVA_OPTS: -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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>br.com.innvent.mcti.empresa</groupId> | |
<artifactId>empresa-ws</artifactId> | |
<packaging>ejb</packaging> | |
<version>1.0</version> | |
<name>Empresa WS</name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<arquillian xmlns="http://jboss.org/schema/arquillian" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation=" | |
http://jboss.org/schema/arquillian | |
http://jboss.org/schema/arquillian/arquillian_1_0.xsd"> | |
<container qualifier="jbossas-managed" default="true"> | |
<configuration> | |
<property name="jbossHome">${JBOSS_HOME}</property> | |
</configuration> | |
</container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BrmedExtensionPoint | |
def get_students_list | |
end | |
def xpto | |
end | |
end | |
class ElgroupExtensionPoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.elogroup.analytics.process.usecases; | |
import java.util.List; | |
import br.com.elogroup.analytics.process.domain.AllProcesses; | |
import br.com.elogroup.analytics.process.domain.Process; | |
public class ConfigureProcess { | |
private AllProcesses allProcesses; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "atendimento lecom", | |
"variavelDependente": "Avaliação", | |
"variavelIndependentes": ["Gerente de Projeto", "Area"], | |
"dataInicioVariavel": "DataInicio", | |
"dataFimVariavel": "DAtaFime", | |
"Instances": [ | |
{ | |
"id":35271, | |
"dataInicio":"29/01/2014", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BombaDeCombustivel{ | |
private double quantidadeDeCombustivel; | |
public void abastecer(double litros, Veiculo veiculo){ | |
if (litros <= 0) new BombaDeCombustivelVaziaException(....); | |
if (! this.temCombustivelSuficiente(litros)) new QuantidadeInsuficienteException(....); | |
veiculo.encherOTanque(litros); | |
this.quantidadeDeCombustivel -= litros; | |
} | |
public boolean temCombustivelSuficiente(double litros){ | |
return this.quantidadeDeCombustivel >= litros; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Veiculo { | |
private double capacidadeDoTanque; | |
private double quantidadeCombustivel; | |
public boolean tanquePossuiEspacoDisponivel(double litros){ | |
return this.capacidadeDoTanque > (this.quantidadeDeCombustivel + litros); | |
} | |
public void encherOTanque(double litros){ | |
if (! this.tanquePossuiEspacoDisponivel(litros)) new VeiculoComTanqueCheioException(.....); |
OlderNewer