input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
shouldTheAlgorithmReturnTheCorrectSolutionWhenSolvingProblemOneMax ( ) { int NUMBER_OF_BITS = 512 ; org . uma . jmetal . algorithm . Algorithm < org . uma . jmetal . solution . BinarySolution > algorithm ; org . uma . jmetal . problem . BinaryProblem problem = new org . uma . jmetal . problem . singleobjective . OneMax...
org . junit . Assert . assertEquals ( NUMBER_OF_BITS , ( ( - 1 ) * ( ( int ) ( solution . getObjective ( 0 ) ) ) ) )
testBuildDBNameOldEncoding ( ) { System . out . println ( ( ( getTestTraceHead ( "[NGSIPostgisSink.buildDBName]" ) ) + "--------<sp>The<sp>schema<sp>name<sp>is<sp>equals<sp>to<sp>the<sp>encoding<sp>of<sp>the<sp>notified/defaulted<sp>service" ) ) ; java . lang . String attrPersistence = null ; java . lang . String batch...
org . junit . Assert . assertEquals ( expectedDBName , builtSchemaName )
shouldReturn4StarRating ( ) { byte [ ] bytes = new byte [ ] { 'A' , 'd' , 'd' , 'r' , 'e' , 's' , 's' , 0 , ( ( byte ) ( 196 ) ) } ; com . mpatric . mp3agic . ID3v2PopmFrameData iD3v2PopmFrameData = new com . mpatric . mp3agic . ID3v2PopmFrameData ( false , bytes ) ; "<AssertPlaceHolder>" ; } getRating ( ) { return rat...
org . junit . Assert . assertEquals ( 4 , iD3v2PopmFrameData . getRating ( ) )
testMemberListExistingMembers ( ) { org . apache . jackrabbit . oak . security . user . MembershipProvider mp = ( ( org . apache . jackrabbit . oak . security . user . UserManagerImpl ) ( getUserManager ( root ) ) ) . getMembershipProvider ( ) ; try { mp . setMembershipSizeThreshold ( 5 ) ; for ( int i = 0 ; i < 10 ; i...
org . junit . Assert . assertTrue ( failed . isEmpty ( ) )
indel_mismapping_false_positive_assembly_should_not_throw_homology_error ( ) { java . io . File ref = au . edu . wehi . idsv . Hg19Tests . findHg19Reference ( ) ; htsjdk . samtools . reference . IndexedFastaSequenceFile indexed = new htsjdk . samtools . reference . IndexedFastaSequenceFile ( ref ) ; org . junit . rules...
org . junit . Assert . assertTrue ( e . isReference ( ) )
test_i18n_resource ( ) { com . day . cq . i18n . I18n mocked = mock ( com . day . cq . i18n . I18n . class ) ; org . powermock . api . mockito . PowerMockito . whenNew ( com . day . cq . i18n . I18n . class ) . withParameterTypes ( java . util . ResourceBundle . class ) . withArguments ( resourceBundle ) . thenReturn (...
org . junit . Assert . assertSame ( mocked , actual )
testRemoveTempStatement ( ) { org . apache . kylin . metadata . TempStatementManager manager = org . apache . kylin . metadata . TempStatementManager . getInstance ( getTestConfig ( ) ) ; manager . removeTempStatement ( "temp_table1" ) ; "<AssertPlaceHolder>" ; } reloadAllTempStatement ( ) { try ( org . apache . kylin ...
org . junit . Assert . assertEquals ( 1 , manager . reloadAllTempStatement ( ) . size ( ) )
test00_2 ( ) { java . util . List < com . liferay . faces . util . config . internal . FacesConfigDescriptor > facesConfigDescriptors = new java . util . ArrayList < com . liferay . faces . util . config . internal . FacesConfigDescriptor > ( ) ; com . liferay . faces . util . xml . OrderingTest . parseConfigurationRes...
org . junit . Assert . assertTrue ( message , assertion )
testLocaleMatches ( ) { final org . apache . commons . lang3 . time . DatePrinter printer = getInstance ( org . apache . commons . lang3 . time . FastDatePrinterTest . YYYY_MM_DD , org . apache . commons . lang3 . time . FastDatePrinterTest . SWEDEN ) ; "<AssertPlaceHolder>" ; } getLocale ( ) { if ( ( locale ) == null ...
org . junit . Assert . assertEquals ( org . apache . commons . lang3 . time . FastDatePrinterTest . SWEDEN , printer . getLocale ( ) )
testShowConfirmDialogs ( ) { org . evosuite . testsuite . TestSuiteChromosome suite = new org . evosuite . testsuite . TestSuiteChromosome ( ) ; org . evosuite . instrumentation . InstrumentingClassLoader cl = new org . evosuite . instrumentation . InstrumentingClassLoader ( ) ; org . evosuite . testcase . TestCase t1 ...
org . junit . Assert . assertEquals ( 5 , coveredGoals . size ( ) )
testTimeout_readBuffer_Success1 ( ) { final byte [ ] exp = new byte [ ] { 'a' , 'b' , 'c' } ; final byte [ ] act = new byte [ exp . length ] ; out . write ( exp ) ; org . eclipse . jgit . util . IO . readFully ( is , act , 0 , act . length ) ; "<AssertPlaceHolder>" ; } readFully ( java . io . InputStream , byte [ ] , i...
org . junit . Assert . assertArrayEquals ( exp , act )
testStartContainer ( ) { final java . util . List < ? > expectedContainers = mock ( java . util . List . class ) ; doReturn ( operation ) . when ( instanceManager ) . makeStartContainerOperation ( containerSpec ) ; doReturn ( expectedContainers ) . when ( instanceManager ) . callRemoteKieServerOperation ( serverTemplat...
org . junit . Assert . assertEquals ( expectedContainers , actualContainers )
testInsufficientGuestLimit ( ) { consumer . setFact ( org . candlepin . policy . js . quantity . QuantityRulesTest . SOCKET_FACT , "8" ) ; java . util . Map < java . lang . String , java . lang . String > guestAttrs = new java . util . HashMap ( ) ; guestAttrs . put ( "virtWhoType" , "libvirt" ) ; guestAttrs . put ( "a...
org . junit . Assert . assertEquals ( new java . lang . Long ( 4 ) , suggested . getSuggested ( ) )
validateMandatoryAndNotEmpty ( ) { mandatorySubject . setValue ( ContentType . P2 ) ; "<AssertPlaceHolder>" ; } validate ( ) { if ( ( isMandatory ( ) ) && ( isEmpty ( ) ) ) { throw new java . lang . IllegalStateException ( java . lang . String . format ( "field<sp>%s<sp>is<sp>mandatory<sp>and<sp>empty" , name ( ) ) ) ;...
org . junit . Assert . assertEquals ( true , mandatorySubject . validate ( ) )
testResolvedItems_onVirtual ( ) { grid = new org . eclipse . nebula . widgets . grid . Grid ( shell , ( ( org . eclipse . swt . SWT . V_SCROLL ) | ( org . eclipse . swt . SWT . VIRTUAL ) ) ) ; grid . setSize ( 200 , 100 ) ; grid . setItemCount ( 100 ) ; doFakeRedraw ( ) ; "<AssertPlaceHolder>" ; } countResolvedGridItem...
org . junit . Assert . assertEquals ( 4 , countResolvedGridItems ( ) )
testRemoveNonExisting ( ) { org . apache . jackrabbit . oak . plugins . tree . TreeLocation location = org . apache . jackrabbit . oak . plugins . tree . TreeLocation . create ( root , org . apache . jackrabbit . oak . plugins . tree . NON_EXISTING_PATH ) ; "<AssertPlaceHolder>" ; verify ( nonExisting , never ( ) ) . r...
org . junit . Assert . assertFalse ( location . remove ( ) )
loadDataObjectTest ( ) { org . kie . workbench . common . screens . datamodeller . client . widgets . jpadomain . JPADataObjectEditor objectEditor = createObjectEditor ( ) ; objectEditor . onContextChange ( context ) ; verify ( view , times ( 2 ) ) . loadPropertyEditorCategories ( anyListOf ( org . uberfire . ext . pro...
org . junit . Assert . assertFalse ( objectEditor . isReadonly ( ) )
supportsFalse ( ) { java . lang . String key = "invalid.value" ; javax . security . jacc . PolicyContextHandler pch = com . ibm . ws . security . authorization . jacc . common . PolicyContextHandlerImpl . getInstance ( ) ; "<AssertPlaceHolder>" ; } supports ( int ) { com . ibm . ws . ejbcontainer . tx . rununderuow . e...
org . junit . Assert . assertFalse ( pch . supports ( key ) )
inlineRoomWithInlineNull ( ) { org . apache . olingo . odata2 . client . api . ep . DeserializerProperties readProperties = org . apache . olingo . odata2 . client . api . ep . DeserializerProperties . init ( ) . build ( ) ; org . apache . olingo . odata2 . api . ep . entry . ODataEntry outerEntry = prepareAndExecuteEn...
org . junit . Assert . assertNull ( innerRoom )
existingDocumentFromUITemplateProviderSpecifiedTerminalOverridenFromUIToNonTerminal ( ) { org . xwiki . model . reference . DocumentReference documentReference = new org . xwiki . model . reference . DocumentReference ( "tocreate" 3 , java . util . Arrays . asList ( "tocreate" 0 ) , "WebHome" ) ; com . xpn . xwiki . do...
org . junit . Assert . assertNull ( result )
writesReaderToOutputStream ( ) { javax . ws . rs . core . MediaType mediaType = new javax . ws . rs . core . MediaType ( "text" , "plain" , com . google . common . collect . ImmutableMap . of ( "charset" , "windows-1251" ) ) ; java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; readerEnt...
org . junit . Assert . assertArrayEquals ( org . everrest . core . impl . provider . ReaderEntityProviderTest . TEST_CONTENT . getBytes ( "windows-1251" ) , out . toByteArray ( ) )
givenCommandConfig_whenExecutingWebGetCommand_thenCorrectResult ( ) { final org . springframework . shell . core . CommandResult resultWebSave = org . baeldung . shell . simple . SimpleCLIIntegrationTest . shell . executeCommand ( "web-get<sp>--url<sp>https://www.google.com" ) ; "<AssertPlaceHolder>" ; } isSuccess ( ) ...
org . junit . Assert . assertTrue ( resultWebSave . isSuccess ( ) )
testParseSuppressionRulesV1dot1 ( ) { java . io . File file = org . owasp . dependencycheck . BaseTest . getResourceAsFile ( this , "suppressions_1_1.xml" ) ; org . owasp . dependencycheck . xml . suppression . SuppressionParser instance = new org . owasp . dependencycheck . xml . suppression . SuppressionParser ( ) ; ...
org . junit . Assert . assertEquals ( 5 , result . size ( ) )
testHelp ( ) { cli . sendLine ( "embed-server<sp>--help" ) ; checkLogging ( "embed-server" ) ; java . lang . String line = "embed-server<sp>--server-config=standalone-cli.xml<sp>" + ( org . jboss . as . test . manualmode . management . cli . CLIEmbedServerTestCase . JBOSS_HOME ) ; cli . sendLine ( line ) ; "<AssertPlac...
org . junit . Assert . assertTrue ( cli . isConnected ( ) )
shouldReturnSameOffsetWhenOffsetIsNormal ( ) { java . lang . Integer originalOffset = 500 ; java . lang . Integer offset = org . openstack . atlas . api . helpers . PaginationHelper . determinePageOffset ( originalOffset ) ; "<AssertPlaceHolder>" ; } determinePageOffset ( java . lang . Integer ) { if ( offset == null )...
org . junit . Assert . assertEquals ( originalOffset , offset )
testSetPayloadOf3rdPartySampler ( ) { nz . co . breakpoint . jmeter . modifiers . SamplerPayloadAccessor . setPayload ( sampler , TestWSSSecurityPreProcessorBase . SAMPLE_SOAP_MSG ) ; java . lang . String payload = sampler . getIt ( ) ; "<AssertPlaceHolder>" ; } getIt ( ) { return payload ; }
org . junit . Assert . assertEquals ( TestWSSSecurityPreProcessorBase . SAMPLE_SOAP_MSG , payload )
testPersist_02 ( ) { iot . jcypher . domain . IDomainAccess da1 = iot . jcypher . domain . DomainAccessFactory . createDomainAccess ( test . querypersist . QueryPersistorTest . dbAccess , test . querypersist . QueryPersistorTest . domainName ) ; java . util . List < java . lang . Object > primList = new java . util . A...
org . junit . Assert . assertEquals ( rq . toString ( ) , rq_2 . toString ( ) )
returnsTrueWhenOnlyPredicateReturnsTrue ( ) { com . fundynamic . d2tm . game . entities . predicates . OrPredicate orPredicate = new com . fundynamic . d2tm . game . entities . predicates . OrPredicate ( new com . fundynamic . d2tm . game . entities . Predicate < com . fundynamic . d2tm . game . entities . Entity > ( )...
org . junit . Assert . assertTrue ( orPredicate . test ( null ) )
assertExecuteUpdateWithAutoGeneratedKeys ( ) { java . sql . Statement statement = getStatement ( ) ; when ( statement . executeUpdate ( org . apache . shardingsphere . shardingjdbc . executor . StatementExecutorTest . DML_SQL , Statement . NO_GENERATED_KEYS ) ) . thenReturn ( 10 ) ; setExecuteGroups ( java . util . Col...
org . junit . Assert . assertThat ( actual . executeUpdate ( Statement . NO_GENERATED_KEYS ) , org . hamcrest . CoreMatchers . is ( 10 ) )
asStructured_single_value ( ) { ezvcard . io . json . JCardValue value = new ezvcard . io . json . JCardValue ( new ezvcard . io . json . JsonValue ( "value1" ) ) ; "<AssertPlaceHolder>" ; } asStructured ( ) { if ( values . isEmpty ( ) ) { return java . util . Collections . emptyList ( ) ; } ezvcard . io . json . JsonV...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( java . util . Arrays . asList ( "value1" ) ) , value . asStructured ( ) )
graba ( ) { System . out . println ( "graba" ) ; mx . edu . um . mateo . general . model . Usuario asociado = obtieneAsociado ( ) ; mx . edu . um . mateo . rh . model . Colegio colegio = new mx . edu . um . mateo . rh . model . Colegio ( ) ; colegio . setNombre ( "Nombre" ) ; colegio . setStatus ( "A" ) ; colegio . set...
org . junit . Assert . assertNotNull ( colegio . getId ( ) )
testCanGetAccessToCurrentStudentSchoolAssociation ( ) { org . slc . sli . api . security . context . validator . Map < java . lang . String , java . lang . Object > goodStudentSchoolAssociation = buildStudentSchoolAssociation ( "student123" , "school123" , new org . joda . time . DateTime ( ) . plusHours ( 1 ) ) ; org ...
org . junit . Assert . assertTrue ( validator . validate ( EntityNames . STUDENT_SCHOOL_ASSOCIATION , associations ) . equals ( associations ) )
validate_shouldRejectWhenObsHasValidConceptIdAndInvalidConceptAnswerId ( ) { java . lang . String xml = "<htmlform><obs<sp>conceptId=\"21\"<sp>answerConceptId=\"5\">TEST</obs></htmlform>" ; org . openmrs . module . htmlformentry . handler . TagAnalysis analysis = validateObsTag ( xml ) ; "<AssertPlaceHolder>" ; } getWa...
org . junit . Assert . assertEquals ( 1 , analysis . getWarnings ( ) . size ( ) )
testNoMethodConstructor ( ) { org . cytoscape . work . BasicTunableHandlerFactory < org . cytoscape . work . TunableHandler > thf = new org . cytoscape . work . BasicTunableHandlerFactory ( org . cytoscape . work . NoMethodTunableHandler . class , int . class ) ; org . cytoscape . work . TunableHandler th = thf . creat...
org . junit . Assert . assertNull ( th )
shouldFailCheckingRequiredBatchForGenealogyComponentsBatchRequired3 ( ) { given ( order . getBelongsToField ( OrderFields . TECHNOLOGY ) ) . willReturn ( technology ) ; given ( order . getHasManyField ( "genealogies" ) . size ( ) ) . willReturn ( 1 ) ; given ( order . getHasManyField ( "genealogies" ) . iterator ( ) ) ...
org . junit . Assert . assertTrue ( result )
trackable_input_post_close_03 ( ) { java . io . InputStream input = this . generateData ( 0 ) ; @ org . apache . jena . hadoop . rdf . io . input . util . SuppressWarnings ( "resource" ) org . apache . jena . hadoop . rdf . io . input . util . TrackableInputStream trackable = this . getInstance ( input ) ; trackable . ...
org . junit . Assert . assertEquals ( ( - 1 ) , trackable . read ( new byte [ 1 ] ) )
testBinNumber ( ) { result = defaultIsisLspBin . binNumber ( ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Class ) { return true ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( 1 ) )
test_GetToolBar_By_Name ( ) { when ( element . findFirst ( mmarquee . automation . BaseAutomationTest . isTreeScope ( TreeScope . Descendants ) , any ( ) ) ) . thenReturn ( targetElement ) ; mmarquee . automation . controls . AutomationToolBar toolbar = spyWndw . getToolBar ( mmarquee . automation . controls . Search ....
org . junit . Assert . assertEquals ( targetElement , toolbar . getElement ( ) )
testGetSaveModuleConfiguration ( ) { hudson . plugins . jobConfigHistory . JobConfigHistory sut = createSut ( ) ; boolean result = sut . getSaveModuleConfiguration ( ) ; "<AssertPlaceHolder>" ; } getSaveModuleConfiguration ( ) { return saveModuleConfiguration ; }
org . junit . Assert . assertFalse ( result )
getMaxXmitFrag ( ) { final com . rapid7 . client . dcerpc . transport . RPCTransport transport = new com . rapid7 . client . dcerpc . transport . Test_RPCTransport . TestRPCTransport ( ) ; "<AssertPlaceHolder>" ; } getMaxXmitFrag ( ) { final com . rapid7 . client . dcerpc . transport . RPCTransport transport = new com ...
org . junit . Assert . assertEquals ( RPCTransport . DEFAULT_MAX_XMIT_FRAG , transport . getMaxXmitFrag ( ) )
testCompareTo006 ( ) { javax . naming . ldap . LdapName ln = new javax . naming . ldap . LdapName ( "" ) ; javax . naming . ldap . LdapName ln2 = new javax . naming . ldap . LdapName ( "t=test,cn=common" ) ; "<AssertPlaceHolder>" ; } compareTo ( com . ibm . ws . pmi . server . data . SpdData ) { if ( ( dataId ) < ( oth...
org . junit . Assert . assertFalse ( ( ( ln . compareTo ( ln2 ) ) >= 0 ) )
testFetchByPrimaryKeyExisting ( ) { com . liferay . sharing . model . SharingEntry newSharingEntry = addSharingEntry ( ) ; com . liferay . sharing . model . SharingEntry existingSharingEntry = _persistence . fetchByPrimaryKey ( newSharingEntry . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return...
org . junit . Assert . assertEquals ( existingSharingEntry , newSharingEntry )
testEntryExistWhenEntryExists_shouldReturnTrue ( ) { writeToCache ( "/test_file.txt" ) ; "<AssertPlaceHolder>" ; } entryExists ( java . lang . String , com . beijunyi . parallelgit . utils . DirCache ) { return ( com . beijunyi . parallelgit . utils . CacheUtils . findEntry ( path , cache ) ) >= 0 ; }
org . junit . Assert . assertTrue ( com . beijunyi . parallelgit . utils . CacheUtils . entryExists ( "/test_file.txt" , cache ) )
capacityViolationAfterAct5_shouldWorkWhenViolated ( ) { buildAnotherScenarioWithOnlyOneVehicleAndWithoutAnyConstraintsBefore ( ) ; com . graphhopper . jsprit . core . analysis . SolutionAnalyser analyser = new com . graphhopper . jsprit . core . analysis . SolutionAnalyser ( vrp , solution , vrp . getTransportCosts ( )...
org . junit . Assert . assertEquals ( 0 , cap . get ( 0 ) )
testSetBindingIndex_acceptsZero ( ) { org . eclipse . rap . rwt . template . Cell cell = new org . eclipse . rap . rwt . template . TestCell ( template , "foo" ) ; cell . setBindingIndex ( 0 ) ; "<AssertPlaceHolder>" ; } getBindingIndex ( ) { return bindingIndex ; }
org . junit . Assert . assertEquals ( 0 , cell . getBindingIndex ( ) )
testGetInstance ( ) { "<AssertPlaceHolder>" ; } getInstance ( ) { return de . strullerbaumann . visualee . source . entity . JavaSourceFactory . JavaSourceFactoryHolder . INSTANCE ; }
org . junit . Assert . assertEquals ( de . strullerbaumann . visualee . source . entity . JavaSourceFactory . class , de . strullerbaumann . visualee . source . entity . JavaSourceFactory . getInstance ( ) . getClass ( ) )
testSpec06 ( ) { javax . el . ELProcessor processor = new javax . el . ELProcessor ( ) ; java . lang . Object result = processor . getValue ( "(x->y->x-y)(2)(1)" , org . apache . el . parser . Integer . class ) ; "<AssertPlaceHolder>" ; } valueOf ( int ) { return org . apache . tomcat . util . net . jsse . openssl . Ci...
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 1 ) , result )
givenMaybe_whenAssembled_shouldExecuteTheHook ( ) { io . reactivex . plugins . RxJavaPlugins . setOnMaybeAssembly ( ( maybe ) -> { hookCalled = true ; return maybe ; } ) ; io . reactivex . Maybe . just ( 1 ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( hookCalled )
testWebClientPipedDispatch ( ) { org . apache . cxf . jaxrs . client . WebClient localClient = org . apache . cxf . jaxrs . client . WebClient . create ( "local://books" ) ; localClient . accept ( "text/xml" ) ; localClient . path ( "bookstore/books" ) ; org . apache . cxf . systest . jaxrs . Book book = localClient . ...
org . junit . Assert . assertEquals ( 124L , book . getId ( ) )
add3 ( ) { org . diirt . util . array . CircularBufferDouble coll = new org . diirt . util . array . CircularBufferDouble ( 10 ) ; for ( int i = 0 ; i < 5 ; i ++ ) { coll . addDouble ( i ) ; } org . diirt . util . array . ListDouble reference = new org . diirt . util . array . ArrayDouble ( new double [ ] { 0 , 1 , 2 ,...
org . junit . Assert . assertThat ( coll , equalTo ( reference ) )
checkTest3 ( ) { com . navercorp . pinpoint . web . vo . Application application = new com . navercorp . pinpoint . web . vo . Application ( com . navercorp . pinpoint . web . alarm . checker . ErrorRateToCalleCheckerTest . FROM_SERVICE_NAME , com . navercorp . pinpoint . common . trace . ServiceType . STAND_ALONE ) ; ...
org . junit . Assert . assertTrue ( checker . isDetected ( ) )
isCurrentVmDiskStatsDifferentFromPreviousTestNull ( ) { com . cloud . user . VmDiskStatisticsVO currentVmDiskStatisticsVO = new com . cloud . user . VmDiskStatisticsVO ( 1L , 1L , 1L , 1L ) ; boolean result = statsCollector . isCurrentVmDiskStatsDifferentFromPrevious ( null , currentVmDiskStatisticsVO ) ; "<AssertPlace...
org . junit . Assert . assertTrue ( result )
testSerialization4 ( ) { org . jfree . data . xy . XYSeriesCollection dataset = new org . jfree . data . xy . XYSeriesCollection ( ) ; org . jfree . chart . JFreeChart chart = org . jfree . chart . ChartFactory . createXYLineChart ( "Test<sp>Chart" , "Domain<sp>Axis" , "Range<sp>Axis" , dataset ) ; org . jfree . chart ...
org . junit . Assert . assertEquals ( chart , chart2 )
testCreateInstance ( ) { com . huawei . streaming . cql . executor . windowcreater . WindowCreator creater = new com . huawei . streaming . cql . executor . windowcreater . GroupTimeSlideWindowCreator ( ) ; creater . createInstance ( createWindow ( ) , initSchema ( ) , null ) ; "<AssertPlaceHolder>" ; } initSchema ( ) ...
org . junit . Assert . assertTrue ( true )
testUpstreamOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t59012449\t.\tN\t<INV>\t.\t.\tSVTYPE=INV;END=59012899" ) ; final java . lang . String expected = "1\t59012449\t.\tN\t<INV>\t.\t.\tEND=59012899;" + ( "SVANN=upstream_gene_variant&structural_variant&coding_transcript_...
org . junit . Assert . assertEquals ( expected , actual )
shouldValidateModifyContractorCorrespondenceAddress ( ) { contractorHelper . setCode ( "" ) ; when ( contractorService . getContractorByCode ( org . mockito . Matchers . anyString ( ) ) ) . thenReturn ( null ) ; contractorHelper . setCorrespondenceAddress ( "Kurnool'<sp>CorrespondenceAddress" ) ; errors = externalContr...
org . junit . Assert . assertEquals ( 2 , errors . size ( ) )
testNaturalOrderOfRectanglesDoesNotBreakContract ( ) { technology . tabula . Page page = technology . tabula . UtilsForTesting . getPage ( "src/test/resources/technology/tabula/us-017.pdf" , 2 ) ; technology . tabula . extractors . SpreadsheetExtractionAlgorithm se = new technology . tabula . extractors . SpreadsheetEx...
org . junit . Assert . assertEquals ( expected , result )
isEqualToTestClassThatWrapsNoJavaClassToo ( ) { org . junit . runners . model . TestClass testClass = new org . junit . runners . model . TestClass ( null ) ; org . junit . runners . model . TestClass testClassThatWrapsNoJavaClassToo = new org . junit . runners . model . TestClass ( null ) ; "<AssertPlaceHolder>" ; } e...
org . junit . Assert . assertTrue ( testClass . equals ( testClassThatWrapsNoJavaClassToo ) )
testSimpleWriteReadSignBySignMoreThenBufferSize ( ) { org . apache . olingo . server . core . serializer . utils . CircleStreamBuffer csb = new org . apache . olingo . server . core . serializer . utils . CircleStreamBuffer ( 128 ) ; java . io . OutputStream write = csb . getOutputStream ( ) ; int signs = 1024 ; java ....
org . junit . Assert . assertEquals ( testData , result )
testEncodeMongoDBDatabaseUpperCase ( ) { System . out . println ( ( ( com . telefonica . iot . cygnus . utils . CommonUtilsForTests . getTestTraceHead ( "[NGSICharsets.encodeMongoDBDatabase]" ) ) + "--------<sp>Upper<sp>case<sp>not<sp>accented<sp>characters<sp>are<sp>encoded" ) ) ; java . lang . String in = "ABCDEFGHIJ...
org . junit . Assert . assertEquals ( expected , out )
setAsString ( ) { com . foundationdb . sql . pg . PreparedStatement setStmt = getConnection ( ) . prepareStatement ( java . lang . String . format ( "INSERT<sp>INTO<sp>types(id,%s)<sp>VALUES(?,?)" , colName ) ) ; com . foundationdb . sql . pg . PreparedStatement getStmt = getConnection ( ) . prepareStatement ( java . l...
org . junit . Assert . assertTrue ( rs . next ( ) )
testfindZeiteinheitenTxtAll ( ) { java . util . List < sernet . gs . reveng . MbZeiteinheitenTxt > findZeiteinheitenTxtAll = vampire . findZeiteinheitenTxtAll ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return objectList . size ( ) ; }
org . junit . Assert . assertTrue ( ( ( findZeiteinheitenTxtAll . size ( ) ) > 0 ) )
parseSpace ( ) { java . util . Date expected = null ; java . lang . reflect . Field field = getClass ( ) . getField ( "testDate" ) ; io . robe . convert . xml . parsers . ParseDate parseDate = new io . robe . convert . xml . parsers . ParseDate ( ) ; java . util . Date actual = parseDate . parse ( io . robe . convert ....
org . junit . Assert . assertEquals ( expected , actual )
userExists ( ) { ss . createOrUpdate ( "userExists" , "foo-password" ) ; "<AssertPlaceHolder>" ; } exists ( java . lang . String ) { byte [ ] data = zkClient . readData ( ( "/config/users/" + username ) , true ) ; if ( data != null ) { java . lang . String jsonString = new java . lang . String ( data , java . nio . cha...
org . junit . Assert . assertTrue ( ss . exists ( "userExists" ) )
testSerialization ( ) { java . awt . GradientPaint gp = new java . awt . GradientPaint ( 1.0F , 2.0F , java . awt . Color . RED , 3.0F , 4.0F , java . awt . Color . BLUE ) ; org . jfree . chart . block . ColorBlock b1 = new org . jfree . chart . block . ColorBlock ( gp , 1.0 , 2.0 ) ; org . jfree . chart . block . Colo...
org . junit . Assert . assertEquals ( b1 , b2 )
testGetEventManager ( ) { de . mirkosertic . gameengine . event . GameEventManager theEventManager = mock ( de . mirkosertic . gameengine . event . GameEventManager . class ) ; de . mirkosertic . gameengine . core . GameResourceLoader theResourceLoader = mock ( de . mirkosertic . gameengine . core . GameResourceLoader ...
org . junit . Assert . assertSame ( theEventManager , theRuntime . getEventManager ( ) )
manageModificationVDiskDeletion_VSERVER_MODIFICATION_REQUESTED_Stopped ( ) { org . oscm . app . iaas . data . FlowState flowState = org . oscm . app . iaas . data . FlowState . VSERVER_MODIFICATION_REQUESTED ; org . oscm . app . iaas . data . FlowState newState = null ; doReturn ( VServerStatus . STOPPED ) . when ( vSe...
org . junit . Assert . assertEquals ( FlowState . VSERVER_STOPPED_FOR_MODIFICATION , newState )
shouldCorrectlyDecodeAStream ( ) { final java . lang . String value = "expected" ; final java . io . InputStream is = new java . io . ByteArrayInputStream ( value . getBytes ( ) ) ; final java . lang . String decoded = com . github . scribejava . core . utils . StreamUtils . getStreamContents ( is ) ; "<AssertPlaceHold...
org . junit . Assert . assertEquals ( "expected" , decoded )
testSourceOverridesDefault ( ) { project . setNewProperty ( MagicNames . BUILD_JAVAC_SOURCE , "1.4" ) ; javac . setSource ( "1.5" ) ; "<AssertPlaceHolder>" ; } getSource ( ) { return ( source ) != null ? source : getProject ( ) . getProperty ( MagicNames . BUILD_JAVAC_SOURCE ) ; }
org . junit . Assert . assertEquals ( "1.5" , javac . getSource ( ) )
testToString_WithPrefix ( ) { final org . eclipse . jgit . lib . Ref a = org . eclipse . jgit . util . RefMapTest . newRef ( "refs/heads/A" , org . eclipse . jgit . util . RefMapTest . ID_ONE ) ; final org . eclipse . jgit . lib . Ref b = org . eclipse . jgit . util . RefMapTest . newRef ( "refs/heads/foo/B" , org . ec...
org . junit . Assert . assertEquals ( exp . toString ( ) , map . toString ( ) )
getName ( ) { this . parameters . put ( "title" , "Age<sp>of<sp>onset" ) ; org . phenotips . configuration . RecordElement s = new org . phenotips . configuration . spi . UIXRecordElement ( this . uiExtension , this . recordSection ) ; "<AssertPlaceHolder>" ; } getName ( ) { org . junit . Assert . assertEquals ( "view"...
org . junit . Assert . assertEquals ( "Age<sp>of<sp>onset" , s . getName ( ) )
testRidiculousNess ( ) { com . ripple . core . coretypes . Amount oneXRP = com . ripple . core . AmountTest . amt ( "1.0" ) ; com . ripple . core . coretypes . Amount oneUSD = com . ripple . core . AmountTest . amt ( "1.0/USD" ) ; "<AssertPlaceHolder>" ; } multiply ( java . lang . Number ) { return multiply ( java . ma...
org . junit . Assert . assertEquals ( oneUSD , oneUSD . multiply ( oneXRP ) )
should_convert_simple_values ( ) { java . util . Map < java . lang . String , java . lang . Object > toml = new com . moandjiezana . toml . Toml ( ) . read ( "a<sp>=<sp>1" ) . toMap ( ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { if ( values . containsKey ( key ) ) { return values . get ( key ) ; } java ...
org . junit . Assert . assertEquals ( java . lang . Long . valueOf ( 1 ) , toml . get ( "a" ) )
runTestInheritedObjects1 ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "FieldAndObjectSensitivity/InheritedObjects1.apk" ) ; "<AssertPlaceHolder>" ; } size ( ) { return set . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , res . size ( ) )
testSetLeft_returnsCell ( ) { org . eclipse . rap . rwt . template . Cell < ? > cell = new org . eclipse . rap . rwt . template . TestCell ( template , "foo" ) ; org . eclipse . rap . rwt . template . Cell < ? > actualCell = cell . setLeft ( 23 ) ; "<AssertPlaceHolder>" ; } setLeft ( int ) { return setLeft ( 0 , offset...
org . junit . Assert . assertSame ( cell , actualCell )
ifContainsThenIntersects ( ) { boolean contains = bitmap . contains ( minimum , supremum ) ; boolean intersects = bitmap . intersects ( minimum , supremum ) ; "<AssertPlaceHolder>" ; } intersects ( int , int ) { for ( int i = 0 ; i < ( numberOfRuns ( ) ) ; ++ i ) { if ( ( ( org . roaringbitmap . Util . compareUnsigned ...
org . junit . Assert . assertTrue ( ( ( ! contains ) || intersects ) )
R2427_AangeverBijWijzigingsCodePersoon ( ) { final nl . bzk . brp . bijhouding . bericht . model . MigratieElement migElement = maakMigratieElement ( "0001" , "regel1" , null , 'P' , 'G' ) ; final java . util . List < nl . bzk . brp . bijhouding . bericht . model . MeldingElement > meldingen = migElement . valideerInho...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
testShiftRangeNullInt ( ) { final int [ ] array = null ; org . apache . commons . lang3 . ArrayUtils . shift ( array , 1 , 1 , 1 ) ; "<AssertPlaceHolder>" ; } shift ( boolean [ ] , int , int , int ) { if ( array == null ) { return ; } if ( ( startIndexInclusive >= ( ( array . length ) - 1 ) ) || ( endIndexExclusive <= ...
org . junit . Assert . assertNull ( array )
shouldReturnCorrectVersionNumberWhenPathWithLeadingSlashGiven ( ) { org . cognitor . cassandra . migration . MigrationRepository repository = new org . cognitor . cassandra . migration . MigrationRepository ( "/cassandra/migrationtest/empty" ) ; "<AssertPlaceHolder>" ; } getLatestVersion ( ) { if ( migrationScripts . i...
org . junit . Assert . assertThat ( repository . getLatestVersion ( ) , org . hamcrest . core . Is . is ( org . hamcrest . CoreMatchers . equalTo ( 0 ) ) )
testFindByPrimaryKeyExisting ( ) { com . liferay . fragment . model . FragmentEntry newFragmentEntry = addFragmentEntry ( ) ; com . liferay . fragment . model . FragmentEntry existingFragmentEntry = _persistence . findByPrimaryKey ( newFragmentEntry . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { ...
org . junit . Assert . assertEquals ( existingFragmentEntry , newFragmentEntry )
testAllValid ( ) { java . util . Set < javax . validation . ConstraintViolation < org . kie . workbench . common . stunner . bpmn . definition . property . diagram . DiagramSet > > violations = this . validator . validate ( tested ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return violations . isEmpty ( ) ; }
org . junit . Assert . assertTrue ( violations . isEmpty ( ) )
test ( ) { cn . cerc . mis . client . RemoteService app = new cn . cerc . mis . client . RemoteService ( ) ; app . setService ( "SvrUserLogin.check" ) ; cn . cerc . core . DataSet datain = app . getDataIn ( ) ; cn . cerc . core . Record head = datain . getHead ( ) ; head . setField ( "Account_" , "admin" ) ; head . set...
org . junit . Assert . assertTrue ( app . getMessage ( ) , result )
whenNotEnoughScore_thenFail ( ) { final org . baeldung . persistence . model . Post post = new org . baeldung . persistence . model . Post ( ) ; post . setMinScoreRequired ( 5 ) ; final org . baeldung . reddit . util . PostScores postScores = new org . baeldung . reddit . util . PostScores ( 2 , 10 , 1 ) ; "<AssertPlac...
org . junit . Assert . assertTrue ( didPostGoalFail ( post , postScores ) )
testSaveGenericResourceAllocation ( ) { org . libreplan . business . planner . entities . GenericResourceAllocation resourceAllocation = createValidGenericResourceAllocation ( ) ; resourceAllocationDAO . save ( resourceAllocation ) ; "<AssertPlaceHolder>" ; } exists ( PK extends java . io . Serializable ) { return ( ge...
org . junit . Assert . assertTrue ( resourceAllocationDAO . exists ( resourceAllocation . getId ( ) ) )
testFindByPrimaryKeyExisting ( ) { com . liferay . document . library . content . model . DLContent newDLContent = addDLContent ( ) ; com . liferay . document . library . content . model . DLContent existingDLContent = _persistence . findByPrimaryKey ( newDLContent . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getP...
org . junit . Assert . assertEquals ( existingDLContent , newDLContent )
testGetLocale ( ) { configSettings . put ( PropertyHandler . IAAS_API_LOCALE , new org . oscm . app . v2_0 . data . Setting ( PropertyHandler . IAAS_API_LOCALE , "EN" ) ) ; propertyHandler = new org . oscm . app . iaas . PropertyHandler ( settings ) ; java . lang . String locale = propertyHandler . getAPILocale ( ) ; "...
org . junit . Assert . assertEquals ( "EN" , locale )
shouldUsePropertiesFromConstructor ( ) { java . util . Properties expected = new java . util . Properties ( ) ; expected . setProperty ( "Key-1" , "Value-1" ) ; expected . setProperty ( "Key-2" , "Value-2" ) ; com . oracle . bedrock . runtime . PropertiesBuilder builder = new com . oracle . bedrock . runtime . Properti...
org . junit . Assert . assertThat ( properties , org . hamcrest . CoreMatchers . is ( expected ) )
testWriteTextFile ( ) { org . qcri . rheem . core . api . RheemContext rheemContext = new org . qcri . rheem . core . api . RheemContext ( ) . with ( org . qcri . rheem . java . Java . basicPlugin ( ) ) ; org . qcri . rheem . api . JavaPlanBuilder builder = new org . qcri . rheem . api . JavaPlanBuilder ( rheemContext ...
org . junit . Assert . assertEquals ( expectedLines , actualLines )
testParseAndAddHighlightQueryResponseToResultPageWithEmptyHighlighting ( ) { org . mockito . Mockito . when ( response . getHighlighting ( ) ) . thenReturn ( java . util . Collections . < java . lang . String , java . util . Map < java . lang . String , java . util . List < java . lang . String > > > emptyMap ( ) ) ; "...
org . junit . Assert . assertTrue ( org . springframework . data . solr . core . ResultHelper . convertAndAddHighlightQueryResponseToResultPage ( response , new org . springframework . data . solr . core . SolrResultPage ( java . util . Collections . singletonList ( new java . lang . Object ( ) ) ) ) . isEmpty ( ) )
test3360 ( ) { java . lang . String str = "!\"#%&\'(),-./" ; java . util . regex . Pattern p = java . util . regex . Pattern . compile ( "\\s" ) ; java . util . regex . Matcher m = p . matcher ( str ) ; "<AssertPlaceHolder>" ; } find ( ) { while ( ( ( index ) < ( provided . length ) ) && ( ! ( provided [ index ] ) ) ) ...
org . junit . Assert . assertFalse ( m . find ( ) )
shouldNotChangeCellWhenDoubleClickEditingAndArrowRightKeyIsPressed ( ) { final com . vaadin . addon . spreadsheet . elements . SheetCellElement b2 = spreadSheet . getCellAt ( "B2" ) ; b2 . setValue ( "123" ) ; sheetController . selectCell ( "A1" ) ; sheetController . doubleClickCell ( "B2" ) ; new org . openqa . seleni...
org . junit . Assert . assertThat ( selectedCell , org . hamcrest . CoreMatchers . is ( "B2" ) )
getBooleanFromResultSet ( ) { au . com . bytecode . opencsv . MockResultSet resultSet = new au . com . bytecode . opencsv . MockResultSet ( ) ; au . com . bytecode . opencsv . MockResultSetMetaData metaData = new au . com . bytecode . opencsv . MockResultSetMetaData ( ) ; java . lang . String [ ] expectedNames = new ja...
org . junit . Assert . assertArrayEquals ( expectedValues , columnValues )
testNotEqualAndLT2 ( ) { com . j_spaces . jdbc . builder . range . Range range1 = new com . j_spaces . jdbc . builder . range . NotEqualValueRange ( "col" , 5 ) ; com . j_spaces . jdbc . builder . range . Range range2 = new com . j_spaces . jdbc . builder . range . SegmentRange ( "col" , null , true , 3 , true ) ; com ...
org . junit . Assert . assertTrue ( ( intersect instanceof com . j_spaces . jdbc . builder . range . SegmentRange ) )
testSerializePartitionKV ( ) { final org . apache . hadoop . mapred . nativetask . buffer . DataOutputStream dataOut = org . mockito . Mockito . mock ( org . apache . hadoop . mapred . nativetask . buffer . DataOutputStream . class ) ; org . mockito . Mockito . when ( dataOut . hasUnFlushedData ( ) ) . thenReturn ( tru...
org . junit . Assert . assertEquals ( written , ( ( ( ( key . length ) + ( value . length ) ) + ( org . apache . hadoop . mapred . nativetask . Constants . SIZEOF_KV_LENGTH ) ) + ( org . apache . hadoop . mapred . nativetask . Constants . SIZEOF_PARTITION_LENGTH ) ) )
testGet24Signed ( ) { fixture . position ( 0 ) ; fixture . putInt ( ( - 1 ) ) ; fixture . putInt ( ( - 1 ) ) ; fixture . position ( 0 ) ; fixture . setByteOrder ( ByteOrder . LITTLE_ENDIAN ) ; long result = fixture . get ( 24 , true ) ; "<AssertPlaceHolder>" ; } get ( int , boolean ) { if ( length > ( org . eclipse . t...
org . junit . Assert . assertEquals ( ( - 1L ) , result )
testContainsTest1 ( ) { io . vertx . core . MultiMap mmap = newMultiMap ( ) ; java . lang . CharSequence name = java . lang . String . valueOf ( new java . lang . Object ( ) ) ; "<AssertPlaceHolder>" ; } contains ( java . lang . CharSequence ) { return contains ( name . toString ( ) ) ; }
org . junit . Assert . assertFalse ( mmap . contains ( name ) )
paddedValueLength1 ( ) { "<AssertPlaceHolder>" ; } paddedValueOfLength ( int ) { return nl . bzk . migratiebrp . voisc . spd . OperationItem . paddedValueOfLength ( "<sp>" , length ) ; }
org . junit . Assert . assertEquals ( "<sp>" , nl . bzk . migratiebrp . voisc . spd . OperationItem . paddedValueOfLength ( 1 ) )
toStringValues ( ) { ezvcard . property . Impp property = new ezvcard . property . Impp ( "protocol" , "uri" ) ; "<AssertPlaceHolder>" ; } toStringValues ( ) { ezvcard . property . Related property = new ezvcard . property . Related ( uri ) ; org . junit . Assert . assertFalse ( property . toStringValues ( ) . isEmpty ...
org . junit . Assert . assertFalse ( property . toStringValues ( ) . isEmpty ( ) )
testSetColumnInfo ( ) { java . util . ArrayList < co . nubetech . hiho . mapreduce . lib . db . ColumnInfo > tableInfo = new java . util . ArrayList < co . nubetech . hiho . mapreduce . lib . db . ColumnInfo > ( ) ; co . nubetech . hiho . mapreduce . lib . db . ColumnInfo columnInfo1 = new co . nubetech . hiho . mapred...
org . junit . Assert . assertEquals ( expectedResult , result )
testDoCollectEmptyStreamThrows ( ) { doThrow ( eu . toolchain . concurrent . CoreAsyncTest . e ) . when ( supplier ) . get ( ) ; doReturn ( future ) . when ( underTest ) . failed ( eu . toolchain . concurrent . CoreAsyncTest . e ) ; "<AssertPlaceHolder>" ; verify ( underTest ) . failed ( eu . toolchain . concurrent . C...
org . junit . Assert . assertEquals ( future , underTest . doStreamCollectEmpty ( consumer , supplier ) )