Skip to content

Instantly share code, notes, and snippets.

View edipofederle's full-sized avatar
🏠
Working from home

Édipo Féderle edipofederle

🏠
Working from home
View GitHub Profile
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
#user nobody;
worker_processes 1;
#pid logs/nginx.pid;
events {
worker_connections 1024;
Method teste = Method.create()
.withName("teste").withArguments(arguments2)
.withVisibility(VisibilityKind.PUBLIC_LITERAL)
.withReturn(Types.INTEGER)
.build();
package mestrado.arquitetura.parser;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.logging.Logger;
@Test
public void shouldAddANewMethodInExistClass() throws Exception{
DocumentManager document = givenADocument("addNewMethodToClass", "simples");
ClassOperations classOperations = new ClassOperations(document);
Architecture arch = givenAArchitecture2("addNewMethodToClass");
assertNotNull(arch);
assertEquals(1, arch.getAllClasses().size());
String idClass = arch.getAllClasses().get(0).getId();
classOperations.createClass("ClasseAbstrata").isAbstract().build();
public class Operations {
private DocumentManager doc;
private ClassOperations classOperation;
public Operations(DocumentManager doc2) {
this.doc = doc2;
createClassOperation();
}
ruby_env:
rake: /user/.rbenv/versions/1.9.3-p194/bin/rake
deploy:
url: localhost
user: root
password: secret
app_name: my_app
repo: https://github.com/edipofederle/blog.git
path: /var/www/apps
private Node getReference(String profileName, String tagName){
NodeList elements = docUml.getElementsByTagName("profileApplication");
for (int i = 0; i < elements.getLength(); i++) {
NodeList childs = (elements.item(i).getChildNodes());
for (int j = 0; j < childs.getLength(); j++) {
if(childs.item(j).getNodeName().equalsIgnoreCase("eAnnotations")){
for (int k = 0; k < childs.item(j).getChildNodes().getLength(); k++) {
if(childs.item(j).getChildNodes().item(k).getNodeName().equalsIgnoreCase("references")){
NodeList eAnnotationsChilds = childs.item(j).getChildNodes();
for (int l = 0; l < eAnnotationsChilds.getLength(); l++) {
private Node getReference(String profileName, String tagName){
NodeList elements = docUml.getElementsByTagName("profileApplication");
for (int i = 0; i < elements.getLength(); i++) {
NodeList childs = (elements.item(i).getChildNodes());
for (int j = 0; j < childs.getLength(); j++) {
if(childs.item(j).getNodeName().equalsIgnoreCase("eAnnotations")){
for (int k = 0; k < childs.item(j).getChildNodes().getLength(); k++) {
if(childs.item(j).getChildNodes().item(k).getNodeName().equalsIgnoreCase("references")){
NodeList eAnnotationsChilds = childs.item(j).getChildNodes();
for (int l = 0; l < eAnnotationsChilds.getLength(); l++) {