repo
stringlengths
1
191
file
stringlengths
23
351
code
stringlengths
0
5.32M
file_length
int64
0
5.32M
avg_line_length
float64
0
2.9k
max_line_length
int64
0
288k
extension_type
stringclasses
1 value
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/model/patient/PatientDataTest.java
package edu.ncsu.csc.itrust.unit.model.patient; import java.io.FileNotFoundException; import java.io.IOException; import java.sql.SQLException; import javax.sql.DataSource; import org.junit.Assert; import org.junit.Test; import edu.ncsu.csc.itrust.exception.DBException; import edu.ncsu.csc.itrust.model.ConverterDAO;...
1,727
26.428571
89
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/model/prescription/PrescriptionMySQLTest.java
package edu.ncsu.csc.itrust.unit.model.prescription; import java.io.FileNotFoundException; import java.io.IOException; import java.sql.SQLException; import java.time.LocalDate; import java.util.List; import javax.sql.DataSource; import org.junit.Assert; import org.junit.Test; import org.mockito.Mockito; import org.m...
8,013
39.271357
156
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/model/prescription/PrescriptionTest.java
package edu.ncsu.csc.itrust.unit.model.prescription; import java.time.LocalDate; import org.junit.Assert; import org.junit.Test; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.beans.MedicationBean; import edu.ncsu.csc.itrust.model.prescription.Prescription; public class PrescriptionTest exten...
1,128
27.225
59
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/model/user/UserDataTest.java
package edu.ncsu.csc.itrust.unit.model.user; import java.io.FileNotFoundException; import java.io.IOException; import java.sql.SQLException; import javax.sql.DataSource; import org.junit.Assert; import org.junit.Test; import junit.framework.TestCase; import edu.ncsu.csc.itrust.exception.DBException; import edu.ncsu...
1,716
30.796296
103
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/model/user/UserTest.java
package edu.ncsu.csc.itrust.unit.model.user; import org.junit.Assert; import org.junit.Test; import junit.framework.TestCase; import edu.ncsu.csc.itrust.exception.ITrustException; import edu.ncsu.csc.itrust.model.old.enums.Role; import edu.ncsu.csc.itrust.model.user.User; public class UserTest extends TestCase { pr...
1,534
20.319444
65
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/report/DemographicReportFilterTest.java
package edu.ncsu.csc.itrust.unit.report; import java.util.HashSet; import java.util.List; import java.util.Set; import edu.ncsu.csc.itrust.model.old.beans.PatientBean; import edu.ncsu.csc.itrust.model.old.dao.DAOFactory; import edu.ncsu.csc.itrust.model.old.dao.mysql.PatientDAO; import edu.ncsu.csc.itrust.report.Demo...
30,668
40.001337
109
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/report/MedicalReportFilterTest.java
package edu.ncsu.csc.itrust.unit.report; import java.util.List; import edu.ncsu.csc.itrust.model.old.beans.PatientBean; import edu.ncsu.csc.itrust.model.old.dao.DAOFactory; import edu.ncsu.csc.itrust.model.old.dao.mysql.PatientDAO; import edu.ncsu.csc.itrust.report.MedicalReportFilter; import edu.ncsu.csc.itrust.repo...
2,802
36.373333
101
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/report/PersonnelReportFilterTest.java
package edu.ncsu.csc.itrust.unit.report; import java.util.List; import edu.ncsu.csc.itrust.model.old.beans.PatientBean; import edu.ncsu.csc.itrust.model.old.dao.DAOFactory; import edu.ncsu.csc.itrust.model.old.dao.mysql.PatientDAO; import edu.ncsu.csc.itrust.report.PersonnelReportFilter; import edu.ncsu.csc.itrust.re...
2,485
34.514286
96
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/serverutils/CustomJSPTagsTest.java
package edu.ncsu.csc.itrust.unit.serverutils; import static org.easymock.EasyMock.anyObject; import static org.easymock.EasyMock.expect; import static org.easymock.EasyMock.expectLastCall; import static org.easymock.classextension.EasyMock.createControl; import java.io.IOException; import javax.servlet.jsp.JspWriter; ...
3,978
29.374046
75
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/serverutils/FindExpertServletTest.java
package edu.ncsu.csc.itrust.unit.serverutils; import static org.junit.Assert.*; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; import java.io.Writer; import javax.servlet.ServletException; import jav...
1,789
26.538462
109
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/serverutils/GroupReportGeneratorTest.java
package edu.ncsu.csc.itrust.unit.serverutils; import static org.easymock.EasyMock.expect; import static org.easymock.EasyMock.expectLastCall; import static org.easymock.classextension.EasyMock.createControl; import java.util.ArrayList; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletRe...
2,893
30.802198
81
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/serverutils/MockHttpSession.java
package edu.ncsu.csc.itrust.unit.serverutils; import java.util.Enumeration; import javax.servlet.ServletContext; import javax.servlet.http.HttpSession; import javax.servlet.http.HttpSessionContext; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; @SuppressWarnings("all") public class MockHttpSession imple...
2,308
21.637255
71
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/serverutils/MockHttpSessionEvent.java
package edu.ncsu.csc.itrust.unit.serverutils; import javax.servlet.http.HttpSession; import javax.servlet.http.HttpSessionEvent; @SuppressWarnings("serial") public class MockHttpSessionEvent extends HttpSessionEvent { public MockHttpSessionEvent() { super(new MockHttpSession()); } @Override public HttpSession ...
372
20.941176
60
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/serverutils/PateintSearchServletTest.java
package edu.ncsu.csc.itrust.unit.serverutils; import static org.junit.Assert.*; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpSer...
3,446
28.461538
112
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/serverutils/ProductionConnectionDriverTest.java
package edu.ncsu.csc.itrust.unit.serverutils; import static org.easymock.classextension.EasyMock.*; import java.sql.Connection; import javax.naming.InitialContext; import javax.sql.DataSource; import junit.framework.TestCase; import org.easymock.classextension.IMocksControl; import edu.ncsu.csc.itrust.model.old.dao.P...
1,836
29.616667
79
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/serverutils/SessionTimeoutListenerTest.java
package edu.ncsu.csc.itrust.unit.serverutils; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import static org.mockito.Mockito.verify; import javax.servlet.http.HttpSession; import javax.servlet.http.HttpSessionEvent; import edu.ncsu.csc.itrust.server.SessionTimeoutListener; import e...
1,882
33.87037
97
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/serverutils/WardCRUDServletTest.java
package edu.ncsu.csc.itrust.unit.serverutils; import static org.easymock.EasyMock.expect; import static org.easymock.EasyMock.expectLastCall; import static org.easymock.classextension.EasyMock.createControl; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServlet...
3,979
28.924812
96
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/serverutils/WardRoomCRUDServletTest.java
package edu.ncsu.csc.itrust.unit.serverutils; import static org.easymock.EasyMock.expect; import static org.easymock.EasyMock.expectLastCall; import static org.easymock.classextension.EasyMock.createControl; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServlet...
4,057
27.377622
96
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/testutils/ActionTestWithMocks.java
package edu.ncsu.csc.itrust.unit.testutils; import static org.easymock.EasyMock.expect; import junit.framework.TestCase; import org.easymock.classextension.EasyMock; import org.easymock.classextension.IMocksControl; import edu.ncsu.csc.itrust.model.old.dao.DAOFactory; import edu.ncsu.csc.itrust.model.old.dao.mysql.Ac...
4,347
41.213592
79
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/testutils/BadBean.java
package edu.ncsu.csc.itrust.unit.testutils; public class BadBean { // To make the coverage work... public BadBean() { setThing(5); setThing(""); } public void setThing(String str) { } public void setThing(Integer str) { } }
238
13.9375
43
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/testutils/EvilDAOFactory.java
package edu.ncsu.csc.itrust.unit.testutils; import java.sql.Connection; import java.sql.SQLException; import edu.ncsu.csc.itrust.model.old.dao.DAOFactory; import edu.ncsu.csc.itrust.model.old.dao.IConnectionDriver; /** * This class is an "evil" (or Diabolical) test connection driver that will not * give you a conn...
1,578
28.240741
90
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/testutils/JUnitiTrustUtils.java
package edu.ncsu.csc.itrust.unit.testutils; import java.util.List; import edu.ncsu.csc.itrust.exception.DBException; import edu.ncsu.csc.itrust.model.old.beans.TransactionBean; import edu.ncsu.csc.itrust.model.old.enums.TransactionType; import edu.ncsu.csc.itrust.selenium.iTrustSeleniumTest; public class JUnitiTrust...
1,994
41.446809
110
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/testutils/OkayBean.java
package edu.ncsu.csc.itrust.unit.testutils; public class OkayBean { private String thing; public OkayBean() { setThing(""); } public String getThing() { return thing; } public void setThing(String thing) { this.thing = thing; } @Override public boolean equals(Object obj) { return obj != null && ob...
543
15.484848
94
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/testutils/SQLFileCache.java
package edu.ncsu.csc.itrust.unit.testutils; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class SQLFileCache { private static SQLFileC...
2,004
24.379747
96
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/testutils/TestBean.java
package edu.ncsu.csc.itrust.unit.testutils; public class TestBean { // Empty class isn't used at all - this is just used as a test hook into // testing BeanValidator. public TestBean() { } }
196
20.888889
73
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/testutils/TestDAOFactory.java
package edu.ncsu.csc.itrust.unit.testutils; import java.io.BufferedReader; import java.io.FileReader; import java.sql.Connection; import java.sql.SQLException; import javax.sql.DataSource; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.xpath.XPathConstants;...
3,110
35.174419
100
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/testutils/ValidatorProxy.java
package edu.ncsu.csc.itrust.unit.testutils; import edu.ncsu.csc.itrust.exception.FormValidationException; import edu.ncsu.csc.itrust.model.old.enums.Gender; import edu.ncsu.csc.itrust.model.old.validate.BeanValidator; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; public class ValidatorProxy extends ...
1,417
33.585366
100
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/BeanValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.enums.Gender; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class BeanValidatorTest extends TestCase { private ValidatorP...
2,318
33.61194
107
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/TestMailValidator.java
package edu.ncsu.csc.itrust.unit.validate; import edu.ncsu.csc.itrust.model.old.validate.MailValidator; import junit.framework.TestCase; public class TestMailValidator extends TestCase { private MailValidator val = new MailValidator(); @Override public void setUp() throws Exception { } public void testValidat...
780
25.033333
60
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/bean/AddPatientValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.bean; import junit.framework.TestCase; import edu.ncsu.csc.itrust.exception.FormValidationException; import edu.ncsu.csc.itrust.model.old.beans.PatientBean; import edu.ncsu.csc.itrust.model.old.validate.AddPatientValidator; import edu.ncsu.csc.itrust.model.old.validate.MailVal...
1,406
37.027027
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/bean/AddPersonnelValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.bean; import junit.framework.TestCase; import edu.ncsu.csc.itrust.exception.FormValidationException; import edu.ncsu.csc.itrust.model.old.beans.PersonnelBean; import edu.ncsu.csc.itrust.model.old.validate.AddPersonnelValidator; import edu.ncsu.csc.itrust.model.old.validate.Mai...
1,423
38.555556
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/bean/AllergyBeanValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.bean; import edu.ncsu.csc.itrust.exception.FormValidationException; import edu.ncsu.csc.itrust.model.old.beans.AllergyBean; import edu.ncsu.csc.itrust.model.old.validate.AllergyBeanValidator; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import junit.framewor...
1,001
32.4
96
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/bean/HospitalBeanValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.bean; import junit.framework.TestCase; import edu.ncsu.csc.itrust.exception.FormValidationException; import edu.ncsu.csc.itrust.model.old.beans.HospitalBean; import edu.ncsu.csc.itrust.model.old.validate.BeanValidator; import edu.ncsu.csc.itrust.model.old.validate.HospitalBean...
2,010
45.767442
110
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/bean/MedicationBeanValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.bean; import junit.framework.TestCase; import edu.ncsu.csc.itrust.exception.FormValidationException; import edu.ncsu.csc.itrust.model.old.beans.MedicationBean; import edu.ncsu.csc.itrust.model.old.validate.BeanValidator; import edu.ncsu.csc.itrust.model.old.validate.Medication...
1,291
35.914286
93
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/bean/PatientValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.bean; import junit.framework.TestCase; import edu.ncsu.csc.itrust.exception.FormValidationException; import edu.ncsu.csc.itrust.model.old.beans.PatientBean; import edu.ncsu.csc.itrust.model.old.validate.MailValidator; import edu.ncsu.csc.itrust.model.old.validate.PatientValida...
16,984
32.435039
111
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/bean/SecurityQuestionValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.bean; import junit.framework.TestCase; import edu.ncsu.csc.itrust.exception.FormValidationException; import edu.ncsu.csc.itrust.model.old.beans.SecurityQA; import edu.ncsu.csc.itrust.model.old.validate.SecurityQAValidator; public class SecurityQuestionValidatorTest extends Te...
2,039
28.565217
94
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/AnswerValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class AnswerValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new ValidatorProxy();...
1,201
37.774194
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/BloodTypeValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class BloodTypeValidatorTest extends TestCase { private static final ValidationFormat VALIDATION_FORMAT = ...
1,746
33.94
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/CPTCodeValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class CPTCodeValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new ValidatorProxy()...
1,150
36.129032
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/CityValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class CityValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new ValidatorProxy(); ...
1,173
36.870968
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/CodeDescriptionValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class CodeDescriptionValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new Validato...
1,012
39.52
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/DateValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class DateValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new ValidatorProxy(); ...
892
36.208333
102
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/EmailValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class EmailValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new ValidatorProxy(); ...
2,034
38.134615
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/GenderValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class GenderValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new ValidatorProxy();...
1,203
37.83871
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/HospitalIDValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class HospitalIDValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new ValidatorProx...
1,658
34.297872
102
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/HospitalNameValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; /** * HospitalNameValidator */ public class HospitalNameValidatorTest extends TestCase { private ValidatorProxy...
1,772
29.568966
107
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/ICD9CMValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class ICD9CMValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new ValidatorProxy();...
2,035
36.018182
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/InsuranceIDValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class InsuranceIDValidatorTest extends TestCase { private static final String PASSED = ""; private Valida...
1,410
38.194444
110
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/MIDValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class MIDValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new ValidatorProxy(); p...
1,299
35.111111
101
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/NDCodeValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class NDCodeValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new ValidatorProxy();...
1,156
36.322581
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/NameValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class NameValidatorTest extends TestCase { private static final String PASSED = ""; private ValidatorProx...
1,359
36.777778
102
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/NotesValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; /** * NotesValidatorTest */ public class NotesValidatorTest extends TestCase { private ValidatorProxy validator...
1,244
28.642857
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/PasswordValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class PasswordValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new ValidatorProxy(...
1,193
37.516129
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/PhoneValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class PhoneValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new ValidatorProxy(); ...
1,158
36.387097
110
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/QuestionValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class QuestionValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new ValidatorProxy(...
1,230
38.709677
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/StateValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class StateValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new ValidatorProxy(); ...
1,360
35.783784
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/regex/ZipcodeValidatorTest.java
package edu.ncsu.csc.itrust.unit.validate.regex; import junit.framework.TestCase; import edu.ncsu.csc.itrust.model.old.validate.ValidationFormat; import edu.ncsu.csc.itrust.unit.testutils.ValidatorProxy; public class ZipcodeValidatorTest extends TestCase { private ValidatorProxy validatorProxy = new ValidatorProxy()...
1,394
36.702703
98
java
iTrust
iTrust-master/iTrust/src/test/java/edu/ncsu/csc/itrust/unit/webutils/SessionUtilsTest.java
package edu.ncsu.csc.itrust.unit.webutils; import static org.junit.Assert.assertEquals; import static org.mockito.Matchers.any; import static org.mockito.Matchers.anyString; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.verify; import static org.m...
4,109
26.959184
74
java
acmeair
acmeair-master/acmeair-common/src/main/java/com/acmeair/AcmeAirConstants.java
package com.acmeair; public interface AcmeAirConstants { }
63
8.142857
35
java
acmeair
acmeair-master/acmeair-common/src/main/java/com/acmeair/entities/AirportCodeMapping.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
983
31.8
80
java
acmeair
acmeair-master/acmeair-common/src/main/java/com/acmeair/entities/Booking.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
967
25.162162
80
java
acmeair
acmeair-master/acmeair-common/src/main/java/com/acmeair/entities/Customer.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
1,572
26.596491
88
java
acmeair
acmeair-master/acmeair-common/src/main/java/com/acmeair/entities/CustomerAddress.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
1,293
34.944444
80
java
acmeair
acmeair-master/acmeair-common/src/main/java/com/acmeair/entities/CustomerSession.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
966
25.861111
80
java
acmeair
acmeair-master/acmeair-common/src/main/java/com/acmeair/entities/Flight.java
/******************************************************************************* * Copyright (c) 2013-2015 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
1,286
22.4
80
java
acmeair
acmeair-master/acmeair-common/src/main/java/com/acmeair/entities/FlightSegment.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
930
31.103448
80
java
acmeair
acmeair-master/acmeair-loader/src/main/java/com/acmeair/loader/CustomerLoader.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
1,505
39.702703
161
java
acmeair
acmeair-master/acmeair-loader/src/main/java/com/acmeair/loader/FlightLoader.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
4,705
34.119403
132
java
acmeair
acmeair-master/acmeair-loader/src/main/java/com/acmeair/loader/Loader.java
/******************************************************************************* * Copyright (c) 2013-2015 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
6,820
31.793269
117
java
acmeair
acmeair-master/acmeair-reporter/src/main/java/com/acmeair/reporter/ReportGenerator.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
15,148
39.289894
137
java
acmeair
acmeair-master/acmeair-reporter/src/main/java/com/acmeair/reporter/parser/IndividualChartResults.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
1,559
27.363636
80
java
acmeair
acmeair-master/acmeair-reporter/src/main/java/com/acmeair/reporter/parser/MultipleChartResults.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
1,839
33.074074
95
java
acmeair
acmeair-master/acmeair-reporter/src/main/java/com/acmeair/reporter/parser/OverallResults.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
1,739
29
80
java
acmeair
acmeair-master/acmeair-reporter/src/main/java/com/acmeair/reporter/parser/ResultParser.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
8,863
32.832061
116
java
acmeair
acmeair-master/acmeair-reporter/src/main/java/com/acmeair/reporter/parser/ResultParserHelper.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
2,213
30.628571
93
java
acmeair
acmeair-master/acmeair-reporter/src/main/java/com/acmeair/reporter/parser/component/JmeterJTLParser.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
8,622
33.770161
116
java
acmeair
acmeair-master/acmeair-reporter/src/main/java/com/acmeair/reporter/parser/component/JmeterSummariserParser.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
2,978
34.464286
88
java
acmeair
acmeair-master/acmeair-reporter/src/main/java/com/acmeair/reporter/parser/component/JtlTotals.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
8,096
30.142308
113
java
acmeair
acmeair-master/acmeair-reporter/src/main/java/com/acmeair/reporter/parser/component/NmonParser.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
2,579
32.076923
88
java
acmeair
acmeair-master/acmeair-reporter/src/main/java/com/acmeair/reporter/util/Messages.java
package com.acmeair.reporter.util; import java.util.MissingResourceException; import java.util.ResourceBundle; import org.apache.commons.configuration.CompositeConfiguration; import org.apache.commons.configuration.Configuration; import org.apache.commons.configuration.PropertiesConfiguration; import org.apache.commo...
1,108
23.644444
79
java
acmeair
acmeair-master/acmeair-reporter/src/main/java/com/acmeair/reporter/util/StatResult.java
package com.acmeair.reporter.util; import java.util.ArrayList; public class StatResult { public double min; public double max; public double average; public int count; public double sum; public double numberOfResults; public double getMin() { return min; } public void setMin(double min) { this.min = min;...
1,577
20.916667
68
java
acmeair
acmeair-master/acmeair-services-morphia/src/main/java/com/acmeair/morphia/BigDecimalConverter.java
package com.acmeair.morphia; import java.math.BigDecimal; import org.mongodb.morphia.converters.SimpleValueConverter; import org.mongodb.morphia.converters.TypeConverter; import org.mongodb.morphia.mapping.MappedField; import org.mongodb.morphia.mapping.MappingException; public class BigDecimalConverter extends Type...
812
29.111111
121
java
acmeair
acmeair-master/acmeair-services-morphia/src/main/java/com/acmeair/morphia/BigIntegerConverter.java
package com.acmeair.morphia; import java.math.BigInteger; import org.mongodb.morphia.converters.SimpleValueConverter; import org.mongodb.morphia.converters.TypeConverter; import org.mongodb.morphia.mapping.MappedField; import org.mongodb.morphia.mapping.MappingException; public class BigIntegerConverter extends Type...
813
28.071429
121
java
acmeair
acmeair-master/acmeair-services-morphia/src/main/java/com/acmeair/morphia/DatastoreFactory.java
package com.acmeair.morphia; import java.util.Properties; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.JSONValue; import com.acmeair.entities.Booking; import com.acmeair.entities.Flight; import com.acmeair.entities.FlightSegment; import org.mongodb.morphia.Datastore; im...
3,217
33.978261
139
java
acmeair
acmeair-master/acmeair-services-morphia/src/main/java/com/acmeair/morphia/MorphiaConstants.java
package com.acmeair.morphia; import com.acmeair.AcmeAirConstants; public interface MorphiaConstants extends AcmeAirConstants { public static final String JNDI_NAME = "mongo/acmeairMongodb"; public static final String KEY = "morphia"; public static final String KEY_DESCRIPTION = "mongoDB with morphia implementatio...
492
28
84
java
acmeair
acmeair-master/acmeair-services-morphia/src/main/java/com/acmeair/morphia/entities/AirportCodeMappingImpl.java
/******************************************************************************* * Copyright (c) 2013-2015 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
1,593
27.464286
80
java
acmeair
acmeair-master/acmeair-services-morphia/src/main/java/com/acmeair/morphia/entities/BookingImpl.java
/******************************************************************************* * Copyright (c) 2013-2015 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
3,211
24.291339
94
java
acmeair
acmeair-master/acmeair-services-morphia/src/main/java/com/acmeair/morphia/entities/CustomerAddressImpl.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
4,028
27.778571
80
java
acmeair
acmeair-master/acmeair-services-morphia/src/main/java/com/acmeair/morphia/entities/CustomerImpl.java
/******************************************************************************* * Copyright (c) 2013-2015 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
4,272
23.988304
185
java
acmeair
acmeair-master/acmeair-services-morphia/src/main/java/com/acmeair/morphia/entities/CustomerSessionImpl.java
/******************************************************************************* * Copyright (c) 2013-2015 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
3,070
24.380165
100
java
acmeair
acmeair-master/acmeair-services-morphia/src/main/java/com/acmeair/morphia/entities/FlightImpl.java
/******************************************************************************* * Copyright (c) 2013-2015 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
6,066
25.845133
80
java
acmeair
acmeair-master/acmeair-services-morphia/src/main/java/com/acmeair/morphia/entities/FlightSegmentImpl.java
/******************************************************************************* * Copyright (c) 2013-2015 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
2,853
24.256637
150
java
acmeair
acmeair-master/acmeair-services-morphia/src/main/java/com/acmeair/morphia/services/BookingServiceImpl.java
package com.acmeair.morphia.services; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.annotation.PostConstruct; import javax.inject.Inject; import org.mongodb.morphia.Datastore; import com.acmeair.entities.Booking; import com.acmeair.entities.Customer; import com.acmeair.entit...
3,058
26.3125
112
java
acmeair
acmeair-master/acmeair-services-morphia/src/main/java/com/acmeair/morphia/services/CustomerServiceImpl.java
package com.acmeair.morphia.services; import java.util.Date; import javax.annotation.PostConstruct; import com.acmeair.entities.Customer; import com.acmeair.entities.Customer.MemberShipStatus; import com.acmeair.entities.Customer.PhoneType; import com.acmeair.entities.CustomerAddress; import com.acmeair.entities.Cus...
3,528
29.686957
130
java
acmeair
acmeair-master/acmeair-services-morphia/src/main/java/com/acmeair/morphia/services/FlightServiceImpl.java
/******************************************************************************* * Copyright (c) 2015 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
5,739
30.538462
165
java
acmeair
acmeair-master/acmeair-services-morphia/src/main/java/com/acmeair/morphia/services/util/MongoConnectionManager.java
package com.acmeair.morphia.services.util; import java.io.IOException; import java.net.URL; import java.net.UnknownHostException; import java.util.Properties; import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Logger; import javax.annotation.Resource; import javax.naming.InitialContext; impo...
6,739
34.851064
135
java
acmeair
acmeair-master/acmeair-services-wxs/src/main/java/com/acmeair/entities/BookingPK.java
/******************************************************************************* * Copyright (c) 2013-2015 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
862
36.521739
80
java
acmeair
acmeair-master/acmeair-services-wxs/src/main/java/com/acmeair/entities/FlightPK.java
/******************************************************************************* * Copyright (c) 2013-2015 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
805
37.380952
80
java
acmeair
acmeair-master/acmeair-services-wxs/src/main/java/com/acmeair/wxs/WXSConstants.java
package com.acmeair.wxs; public interface WXSConstants { public static final String JNDI_NAME = "wxs/acmeair"; public static final String KEY = "wxs"; public static final String KEY_DESCRIPTION = "eXtreme Scale"; }
222
21.3
62
java
acmeair
acmeair-master/acmeair-services-wxs/src/main/java/com/acmeair/wxs/entities/AirportCodeMappingImpl.java
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
1,500
27.320755
80
java