This file contains hidden or 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
| #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; | |
This file contains hidden or 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
| #user nobody; | |
| worker_processes 1; | |
| #pid logs/nginx.pid; | |
| events { | |
| worker_connections 1024; |
This file contains hidden or 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
| Method teste = Method.create() | |
| .withName("teste").withArguments(arguments2) | |
| .withVisibility(VisibilityKind.PUBLIC_LITERAL) | |
| .withReturn(Types.INTEGER) | |
| .build(); |
This file contains hidden or 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 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; |
This file contains hidden or 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
| @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(); |
This file contains hidden or 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
| classOperations.createClass("ClasseAbstrata").isAbstract().build(); |
This file contains hidden or 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 Operations { | |
| private DocumentManager doc; | |
| private ClassOperations classOperation; | |
| public Operations(DocumentManager doc2) { | |
| this.doc = doc2; | |
| createClassOperation(); | |
| } |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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++) { |
This file contains hidden or 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
| 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++) { |