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
Error: The action index is not defined in controller FiscalsController | |
Error: Create FiscalsController::index() in file: src\Controller\\FiscalsController.php. | |
Stack Trace | |
ROOT\plugins\Crud\src\Controller\ControllerTrait.php line 35 → Cake\Controller\Controller->invokeAction() | |
*/ | |
public function invokeAction() { |
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
public interface EntityRepository<K, E> { | |
/* | |
* Para uma base de dados multi-clientes | |
*/ | |
public List<E> todos(Integer id); | |
public E busca(K key); |
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
public class Entity implements Objectfy { | |
private String nome; | |
private String sobrenome; | |
private Integer idade; | |
private List<Integer> contatos; | |
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
import ma.glasnost.orika.MapperFactory | |
import ma.glasnost.orika.impl.DefaultMapperFactory | |
import org.specs2.mutable._ | |
class MapperTest() extends Specification { | |
var mapperFactory: MapperFactory = new DefaultMapperFactory.Builder().build() | |
"Dado um mappeador " | |
step { | |
mapperFactory.classMap(classOf[UmAtributo], classOf[UmAtributoPublic]) |
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 entities; | |
public class SubClass extends SuperClass { | |
private int attribute; | |
public int getAttribute() { | |
return attribute; | |
} | |
} |
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 Jogador { | |
String nome; | |
Integer idade; | |
Bola bola; | |
public Jogador(String nome, Integer idade) { | |
this.nome = nome; | |
this.idade = idade; | |
} |
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
import org.specs2.mutable._ | |
import org.specs2.runner._ | |
import org.junit.runner._ | |
import play.api.libs.ws._ | |
import play.api.test._ | |
import play.api.test.Helpers._ | |
import scala.concurrent.{ExecutionContext, Await} |
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
public class IntegrationTest extends WithApplication { | |
// ... | |
@Test | |
public void testRequest() { | |
Promise<WSResponse> promise = WS.url("http://www.google.com").get(); | |
assertThat( | |
promise.get(1000).getStatus(), equalTo(OK)); | |
} |
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
import org.junit.*; | |
import play.libs.ws.WS; | |
import play.libs.ws.WSResponse; | |
import play.mvc.*; | |
import play.test.*; | |
import play.libs.F.*; | |
import static play.test.Helpers.*; | |
import static org.junit.Assert.*; |
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
<style> | |
.tabela-alterada .rich-table-subheader th:last-child { | |
background-color : #fff; | |
} | |
</style> | |
<rich:panel header="teste"> | |
<rich:dataTable value="#{reBeam.alunos}" var="aluno" styleClass="tabela-alterada" > | |
<f:facet name="header"> | |
<rich:columnGroup> |
OlderNewer