input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testSplitSegmentDoesNothingIfTheEventProcessorIsNotOfTypeTracking ( ) { boolean result = testSubject . splitSegment ( org . axonframework . axonserver . connector . processor . EventProcessorControllerTest . SUBSCRIBING_PROCESSOR_NAME , org . axonframework . axonserver . connector . processor . EventProcessorController... | org . junit . Assert . assertFalse ( result ) |
testGetColumn_withIndexExceedingGridWidth ( ) { int index = ( StaticGrid . TILE_GRID . getWidth ( ) ) + 1 ; final com . valkryst . VTerminal . Tile [ ] row = StaticGrid . TILE_GRID . getColumn ( index ) ; "<AssertPlaceHolder>" ; } getColumn ( int ) { if ( ( columnIndex >= ( tiles [ 0 ] . length ) ) || ( columnIndex < 0... | org . junit . Assert . assertEquals ( row . length , 0 ) |
getPreviousCheckedTimeMillis_A$ ( ) { long actual = crond . getPreviousCheckedTimeMillis ( ) ; long expected = 0L ; "<AssertPlaceHolder>" ; } getPreviousCheckedTimeMillis ( ) { return previousCheckedTimeMillis ; } | org . junit . Assert . assertEquals ( expected , actual ) |
shouldRejectWhenMissingAttributes ( ) { org . openstack . atlas . api . validation . results . ValidatorResult result = validator . validate ( new org . openstack . atlas . docs . loadbalancers . api . v1 . Node ( ) , org . openstack . atlas . api . validation . validators . PUT ) ; "<AssertPlaceHolder>" ; } passedVali... | org . junit . Assert . assertFalse ( result . passedValidation ( ) ) |
testGetContentCleanerJob ( ) { org . pentaho . platform . api . scheduler2 . Job mockJob = mock ( org . pentaho . platform . api . scheduler2 . Job . class ) ; doReturn ( mockJob ) . when ( schedulerResource . schedulerService ) . getContentCleanerJob ( ) ; org . pentaho . platform . api . scheduler2 . Job testJob = sc... | org . junit . Assert . assertEquals ( mockJob , testJob ) |
compositeHadoopTap ( ) { java . lang . Class < ? > tapType = com . hotels . plunger . TapTypeUtil . getTapConfigClass ( new cascading . tap . MultiSourceTap ( new cascading . tap . hadoop . Hfs ( new cascading . scheme . hadoop . TextDelimited ( ) , "" ) ) ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( org . apache . hadoop . conf . Configuration . class , tapType ) |
shouldReturnTrueForPlannedQuantityValidation ( ) { stubBelongsToField ( order , OrderFields . PRODUCT , product ) ; stubDecimalField ( order , OrderFields . PLANNED_QUANTITY , BigDecimal . ONE ) ; boolean result = orderHooks . checkOrderPlannedQuantity ( orderDD , order ) ; "<AssertPlaceHolder>" ; } checkOrderPlannedQu... | org . junit . Assert . assertTrue ( result ) |
loadStoredSettingsShouldSetWakeLockToFalseIfSetToFalse ( ) { net . usikkert . kouchat . android . util . RobolectricTestUtils . setWakeLockInTheAndroidSettingsTo ( false ) ; settingsLoader . loadStoredSettings ( context , settings ) ; "<AssertPlaceHolder>" ; } isWakeLockEnabled ( ) { return wakeLockEnabled ; } | org . junit . Assert . assertFalse ( settings . isWakeLockEnabled ( ) ) |
getRedenVerliesNlTestOK ( ) { final java . lang . String rvnCode = "034" ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . RedenVerliesNLNationaliteit expectedRvn = new nl . bzk . algemeenbrp . dal . domein . brp . entity . RedenVerliesNLNationaliteit ( rvnCode , "034" ) ; final java . lang . String expect... | org . junit . Assert . assertEquals ( expected , resultRvn ) |
testParsePatternCount1 ( ) { model . datafield . DataField result = ( ( model . datafield . DataField ) ( p . parse ( "COMPARE<sp>PATTERN<sp>LABEL(Y)" , data ) ) ) ; "<AssertPlaceHolder>" ; } getIntegerValue ( ) { throw new model . UnsupportedFormatException ( "Double<sp>cannot<sp>be<sp>converted<sp>to<sp>an<sp>integer... | org . junit . Assert . assertEquals ( 1 , result . getIntegerValue ( ) ) |
size_anthracene ( ) { int [ ] [ ] anthracene = org . openscience . cdk . graph . InitialCyclesTest . anthracene ( ) ; org . openscience . cdk . graph . VertexShortCycles vsc = new org . openscience . cdk . graph . VertexShortCycles ( anthracene ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . cells . size ( ) ; } | org . junit . Assert . assertThat ( vsc . size ( ) , org . hamcrest . CoreMatchers . is ( 3 ) ) |
testGetCDSLengthReverseDesc ( ) { java . util . List < java . lang . Integer > exonStarts = new java . util . ArrayList ( java . util . Arrays . asList ( 70 , 50 , 10 ) ) ; java . util . List < java . lang . Integer > exonEnds = new java . util . ArrayList ( java . util . Arrays . asList ( 80 , 60 , 20 ) ) ; int cdsSta... | org . junit . Assert . assertEquals ( cdsDesired , cdsTest ) |
testGet ( ) { int value = com . annimon . stream . Exceptional . of ( com . annimon . stream . ExceptionalTest . tenSupplier ) . get ( ) ; "<AssertPlaceHolder>" ; } get ( ) { return new java . lang . StringBuilder ( ) ; } | org . junit . Assert . assertEquals ( 10 , value ) |
serialization ( ) { org . apache . commons . math3 . ode . TestProblem1 pb = new org . apache . commons . math3 . ode . TestProblem1 ( ) ; double step = ( ( pb . getFinalTime ( ) ) - ( pb . getInitialTime ( ) ) ) * 0.001 ; org . apache . commons . math3 . ode . nonstiff . EulerIntegrator integ = new org . apache . comm... | org . junit . Assert . assertTrue ( ( maxError < 0.001 ) ) |
addRevokeUser_SubscriptionManagerPermissions ( ) { createdSubscription = createSubscription ( ) ; createdSubscription = org . oscm . ws . SubscriptionServiceWSTest . subscrServiceForSubManager . subscribeToService ( createdSubscription , org . oscm . ws . SubscriptionServiceWSTest . freeService , org . oscm . ws . Subs... | org . junit . Assert . assertEquals ( 0 , subList . size ( ) ) |
testCheckSettingsOk ( ) { com . onelogin . saml2 . settings . Saml2Settings settings = new com . onelogin . saml2 . settings . SettingsBuilder ( ) . fromFile ( "config/config.all.properties" ) . build ( ) ; java . util . List < java . lang . String > settingsErrors = settings . checkSettings ( ) ; "<AssertPlaceHolder>"... | org . junit . Assert . assertTrue ( settingsErrors . isEmpty ( ) ) |
testGetColumnKeys ( ) { org . jfree . data . category . DefaultIntervalCategoryDataset empty = new org . jfree . data . category . DefaultIntervalCategoryDataset ( new double [ 0 ] [ 0 ] , new double [ 0 ] [ 0 ] ) ; java . util . List keys = empty . getColumnKeys ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return queue ... | org . junit . Assert . assertEquals ( 0 , keys . size ( ) ) |
test_Version ( ) { de . vandermeer . svg2vector . applications . fh . Svg2Vector_FH app = new de . vandermeer . svg2vector . applications . fh . Svg2Vector_FH ( ) ; java . lang . String [ ] args = new java . lang . String [ ] { "--version" } ; "<AssertPlaceHolder>" ; } executeApplication ( java . lang . String [ ] ) { ... | org . junit . Assert . assertEquals ( 1 , app . executeApplication ( args ) ) |
testBug3093644 ( ) { java . lang . String smiles1 = "[H]C5(CCC(N)=O)(C=1N=C(C=C4N=C(C(C)=C3[N-]C(C)(C2N=C(C=1(C))C(C)" + ( ( "(CCC(=O)NCC(C)O)C2([H])(CC(N)=O))C(C)(CC(N)=O)C3([H])(CCC(N)=O))" + "C(C)(CC(N)=O)C4([H])(CCC(N)=O))C5(C)(C)).[H][C-]([H])C3([H])(OC([H])" ) + "(N2C=NC=1C(N)=NC=NC=12)C([H])(O)C3([H])(O)).[Co+3]... | org . junit . Assert . assertNotNull ( type . getAtomTypeName ( ) ) |
testByteOr ( ) { byte theValue = 1 ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( 3 , ( theValue | 2 ) , 0 ) |
testGetPDFURLWithNoBundle ( ) { org . dspace . app . util . GoogleMetadata gm = new org . dspace . app . util . GoogleMetadata ( this . context , it ) ; "<AssertPlaceHolder>" ; } getPDFURL ( ) { return metadataMappings . get ( PDF ) ; } | org . junit . Assert . assertEquals ( 0 , gm . getPDFURL ( ) . size ( ) ) |
testSuccess ( ) { final java . lang . Object success = new java . lang . Object ( ) ; jobFuture . await ( 1000 , TimeUnit . MILLISECONDS ) ; new java . lang . Thread ( new java . lang . Runnable ( ) { @ com . ctrip . xpipe . command . Override public void run ( ) { jobFuture . setSuccess ( success ) ; } } ) . start ( )... | org . junit . Assert . assertEquals ( success , jobFuture . get ( ) ) |
testDictRef ( ) { java . lang . String cmlString = "<sp>elementType=\"3alanine\"<sp>elementType=\"2pdb:aminoAcid\"<sp>elementType=\"4pdb:residueName\"<sp>elementType=\"1pdb:oneLetterCode\"<sp>elementType=\"0pdb:id\">3</scalar><atomArray><atom<sp>id=\"a1\"<sp>elementType=\"C\"<sp>x2=\"265.0\"<sp>y2=\"989.0\"/><atom<sp>i... | org . junit . Assert . assertTrue ( foundDictRefs ) |
testForceSyncDefaultEnabled ( ) { java . io . File file = new java . io . File ( "foo.10027c6de" ) ; org . apache . zookeeper . server . persistence . FileTxnLog log = new org . apache . zookeeper . server . persistence . FileTxnLog ( file ) ; "<AssertPlaceHolder>" ; } isForceSync ( ) { return forceSync ; } | org . junit . Assert . assertTrue ( log . isForceSync ( ) ) |
testGetS3StorageUnitsToRestore ( ) { org . finra . herd . model . jpa . StorageUnitEntity storageUnitEntity = new org . finra . herd . model . jpa . StorageUnitEntity ( ) ; java . util . List < org . finra . herd . model . jpa . StorageUnitEntity > storageUnitEntities = java . util . Arrays . asList ( storageUnitEntity... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( storageUnitKey ) , result ) |
validStringDefaultShouldNotCreateViolations ( ) { java . util . Set < javax . validation . ConstraintViolation < org . alien4cloud . tosca . model . definitions . PropertyDefinition > > violations = validator . validate ( createDefinitions ( ToscaTypes . STRING . toString ( ) , "string<sp>value" ) ) ; "<AssertPlaceHold... | org . junit . Assert . assertEquals ( 0 , violations . size ( ) ) |
isNewValue_newValLongValue ( ) { boolean result = parameterParserSpy . isNewValue ( strMaxValue , maxValue ) ; "<AssertPlaceHolder>" ; } isNewValue ( java . lang . Object , java . lang . String ) { return ( ( oldVal == null ) && ( ! ( isBlank ( newVal ) ) ) ) || ( ( oldVal != null ) && ( ! ( oldVal . equals ( newVal ) ... | org . junit . Assert . assertTrue ( result ) |
testSetDeny ( ) { try { me . haosdent . cgroup . subsystem . Devices . Record record = new me . haosdent . cgroup . subsystem . Devices . Record ( Devices . TYPE_ALL , 8 , 0 , 2 ) ; me . haosdent . cgroup . subsystem . DevicesTest . one . getDevices ( ) . setDeny ( record . type , record . major , record . minor , reco... | org . junit . Assert . assertTrue ( false ) |
testGetTransactionOfAccount ( ) { jstellarapi . core . StellarTransactionHistory txHistory = jstellarapi . connection . StellarDaemonWebsocketConnectionTest . conn . getTransactionsForAccount ( StellarAddress . STELLAR_ADDRESS_PMARCHES . toString ( ) , StellarDaemonConnection . GENESIS_LEDGER_NUMBER ) ; "<AssertPlaceHo... | org . junit . Assert . assertEquals ( 16 , txHistory . size ( ) ) |
getSecond_A$ ( ) { com . m3 . scalaflavor4j . Tuple2 < java . lang . Integer , java . lang . Long > tuple = com . m3 . scalaflavor4j . Tuple2 . apply ( 1 , 2L ) ; java . lang . Long actual = tuple . getSecond ( ) ; java . lang . Long expected = 2L ; "<AssertPlaceHolder>" ; } getSecond ( ) { return _2 ( ) ; } | org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) ) |
shouldResourceBeIncluded_shouldReturnTrueIfFileMatchesAndOpenmrsVersionMatches ( ) { org . openmrs . module . ModuleConditionalResource resource = new org . openmrs . module . ModuleConditionalResource ( ) ; resource . setPath ( "lib/mockmodule-api-1.10.jar" ) ; resource . setOpenmrsPlatformVersion ( "1.7-1.8,1.10-1.11... | org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( true ) ) |
testValidityChecks ( ) { java . lang . String interfaceName = "eth0" ; boolean enabled = true ; int defaultLeaseTime = 1200 ; int maximumLeaseTime = 1200 ; boolean passDns = true ; org . eclipse . kura . net . dhcp . DhcpServerCfg dhcpServerCfg = new org . eclipse . kura . net . dhcp . DhcpServerCfg ( interfaceName , e... | org . junit . Assert . assertTrue ( configIP4 . isValid ( ) ) |
testGetMedicationIdForBarcodeNotExist ( ) { final java . lang . Long medicationId = medicationsDao . getMedicationIdForBarcode ( "222" ) ; "<AssertPlaceHolder>" ; } getMedicationIdForBarcode ( java . lang . String ) { final java . lang . Long medicationId = service . getMedicationIdForBarcode ( barcode ) ; return build... | org . junit . Assert . assertNull ( medicationId ) |
testIsPlainTextForNull ( ) { "<AssertPlaceHolder>" ; } isPlainTextPassword ( java . lang . String ) { return ( org . apache . jackrabbit . oak . spi . security . user . util . PasswordUtil . extractAlgorithm ( password ) ) == null ; } | org . junit . Assert . assertTrue ( org . apache . jackrabbit . oak . spi . security . user . util . PasswordUtil . isPlainTextPassword ( null ) ) |
testToTerm_1 ( ) { final org . erlide . core . builder . CompilerOption . BooleanOption option = org . erlide . core . builder . CompilerOptions . WARN_EXPORT_ALL ; final com . ericsson . otp . erlang . OtpErlangObject actual = option . toTerm ( true ) ; final java . lang . String expected = "warn_export_all" ; "<Asser... | org . junit . Assert . assertEquals ( expected , actual . toString ( ) ) |
testRecycleChildQuark ( ) { org . eclipse . tracecompass . tmf . core . statesystem . TmfAttributePool pool = new org . eclipse . tracecompass . tmf . core . statesystem . TmfAttributePool ( fStateSystem , org . eclipse . tracecompass . statesystem . core . ITmfStateSystem . ROOT_ATTRIBUTE ) ; "<AssertPlaceHolder>" ; t... | org . junit . Assert . assertNotNull ( pool ) |
runTest ( ) { boolean result = checkNoError ( "Social_Activities_Update_Activity_Node" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; } | org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result ) |
testDontTouchLoggingCanBeSet ( ) { configuration . setDontTouchLogging ( true ) ; "<AssertPlaceHolder>" ; } dontTouchLogging ( ) { return dontTouchLogging ; } | org . junit . Assert . assertTrue ( configuration . dontTouchLogging ( ) ) |
getNumberPassThru ( ) { org . eclipse . collections . api . block . function . Function < java . lang . Number , java . lang . Number > function = org . eclipse . collections . impl . block . factory . Functions . getNumberPassThru ( ) ; "<AssertPlaceHolder>" ; } valueOf ( java . lang . Integer ) { return org . eclipse... | org . junit . Assert . assertEquals ( 1 , function . valueOf ( 1 ) ) |
testEdgeJoinOnBoundaryColumns ( ) { org . gradoop . common . model . impl . id . GradoopId v0 = org . gradoop . common . model . impl . id . GradoopId . get ( ) ; org . gradoop . common . model . impl . id . GradoopId v1 = org . gradoop . common . model . impl . id . GradoopId . get ( ) ; org . gradoop . common . model... | org . junit . Assert . assertEquals ( createEmbedding ( v0 , e0 , v1 , e1 ) , result . get ( 0 ) ) |
testExplicitProduct ( ) { projectSeeds . add ( org . eclipse . tycho . plugins . p2 . director . ProductConfigTest . productSeed ( "product.id.1" ) ) ; projectSeeds . add ( org . eclipse . tycho . plugins . p2 . director . ProductConfigTest . productSeed ( "product.id.2" ) ) ; java . util . List < org . eclipse . tycho... | org . junit . Assert . assertEquals ( expected , subject . getProducts ( ) ) |
testUeberCertIsRegeneratedOnNextInvocation ( ) { org . candlepin . dto . api . v1 . UeberCertificateDTO firstCert = or . createUeberCertificate ( principal , owner . getKey ( ) ) ; org . candlepin . dto . api . v1 . UeberCertificateDTO secondCert = or . createUeberCertificate ( principal , owner . getKey ( ) ) ; "<Asse... | org . junit . Assert . assertTrue ( ( ( firstCert . getId ( ) ) != ( secondCert . getId ( ) ) ) ) |
updateOfAResourceByANonAuthenticatedUser ( ) { try { put ( aResource ( ) , org . silverpeas . web . ResourceUpdateTest . at ( aResourceURI ( ) ) , org . silverpeas . web . ResourceUpdateTest . withAsApiToken ( null ) ) ; org . junit . Assert . fail ( "A<sp>non<sp>authenticated<sp>user<sp>shouldn't<sp>update<sp>the<sp>r... | org . junit . Assert . assertThat ( receivedStatus , org . hamcrest . Matchers . is ( unauthorized ) ) |
testItemIndex_ofSubItem ( ) { org . eclipse . nebula . widgets . grid . GridTestUtil . createGridItems ( grid , 3 , 3 ) ; org . eclipse . nebula . widgets . grid . GridItem item = new org . eclipse . nebula . widgets . grid . GridItem ( grid . getItem ( 0 ) , org . eclipse . swt . SWT . NONE , 1 ) ; "<AssertPlaceHolder... | org . junit . Assert . assertEquals ( 1 , item . index ) |
testSetTechnicalProductDistinguishedName ( ) { container . login ( "1" , org . oscm . operatorservice . bean . ROLE_PLATFORM_OPERATOR ) ; callerRolles . add ( OrganizationRoleType . PLATFORM_OPERATOR ) ; dataManager_getReferenceByBusinessKey_return . push ( organization ) ; operatorService . setDistinguishedName ( "1" ... | org . junit . Assert . assertEquals ( "2" , organization . getDistinguishedName ( ) ) |
testLatestBlogs ( ) { for ( int i = 0 ; i < 100 ; i ++ ) { com . openshift . blog . domain . Blog blog = new com . openshift . blog . domain . Blog ( "Getting<sp>Started<sp>with<sp>OpenShift" , "Getting<sp>Started<sp>with<sp>OpenShift" ) ; java . lang . String blogId = blogRepository . save ( blog ) ; } java . util . L... | org . junit . Assert . assertEquals ( 10 , latestBlogs . size ( ) ) |
cloneAsVersionTest ( ) { final org . opendaylight . controller . cluster . access . commands . ReadTransactionSuccess clone = org . opendaylight . controller . cluster . access . commands . ReadTransactionSuccessNoDataTest . OBJECT . cloneAsVersion ( ABIVersion . BORON ) ; "<AssertPlaceHolder>" ; } cloneAsVersion ( org... | org . junit . Assert . assertEquals ( org . opendaylight . controller . cluster . access . commands . ReadTransactionSuccessNoDataTest . OBJECT , clone ) |
insertTest ( ) { int i = user1Mapper . insert ( me . zhyd . springboot . multi . User1DatasourceTests . getUser ( 2 ) ) ; int ii = 1 / 0 ; "<AssertPlaceHolder>" ; } getUser ( int ) { java . lang . String username = "username" ; int len = new java . util . Random ( ) . nextInt ( max ) ; for ( int i = 0 ; i < len ; i ++ ... | org . junit . Assert . assertEquals ( i , 1 ) |
test_param_string_copy_1 ( ) { java . lang . String cmdText = "SELECT<sp>*<sp>WHERE<sp>{<sp>?s<sp>?p<sp>?o<sp>}" ; org . apache . jena . query . ParameterizedSparqlString query = new org . apache . jena . query . ParameterizedSparqlString ( cmdText ) ; org . apache . jena . query . ParameterizedSparqlString copy = quer... | org . junit . Assert . assertEquals ( cmdText , copy . getCommandText ( ) ) |
testFactoryExceptionIsPropagated ( ) { java . lang . NullPointerException exception = mock ( com . bazaarvoice . ostrich . pool . NullPointerException . class ) ; when ( _factory . create ( any ( com . bazaarvoice . ostrich . ServiceEndPoint . class ) ) ) . thenThrow ( exception ) ; try { newCache ( ) . checkOut ( _end... | org . junit . Assert . assertSame ( exception , caught ) |
getByQueryStringTest ( ) { for ( int i = 0 ; i < 3 ; i ++ ) { com . datastax . driver . mapping . EntityWithIndexes obj = new com . datastax . driver . mapping . EntityWithIndexes ( ) ; obj . setCount ( 100 ) ; obj . setEmail ( "email@test" ) ; obj . setName ( ( "test" + i ) ) ; obj . setTimeStamp ( new com . datastax ... | org . junit . Assert . assertEquals ( 3 , items . size ( ) ) |
testCodes ( ) { for ( org . bukkit . Material material : org . bukkit . Material . values ( ) ) { if ( material . isLegacy ( ) ) { continue ; } java . lang . String shortenedName = com . Acrobot . Breeze . Utils . MaterialUtil . getShortenedName ( material . toString ( ) , MaterialUtil . MAXIMUM_SIGN_WIDTH ) ; "<Assert... | org . junit . Assert . assertSame ( material , com . Acrobot . Breeze . Utils . MaterialUtil . getMaterial ( shortenedName ) ) |
applyDefaultRespectsExtensionForBuildInWhenPresent ( ) { com . github . timm . cucumber . generate . Plugin plugin = new com . github . timm . cucumber . generate . Plugin ( ) ; plugin . setName ( "json" ) ; plugin . setExtension ( "somethingelse" ) ; plugin . applyDefaults ( new java . io . File ( "path/to/output" ) )... | org . junit . Assert . assertThat ( plugin . getExtension ( ) , org . hamcrest . CoreMatchers . equalTo ( "somethingelse" ) ) |
unmodifiableArray_reflectsChanges ( ) { com . restfb . json . JsonArray unmodifiableArray = com . restfb . json . JsonArray . unmodifiableArray ( array ) ; array . add ( 23 ) ; "<AssertPlaceHolder>" ; } values ( ) { return java . util . Collections . unmodifiableList ( values ) ; } | org . junit . Assert . assertEquals ( array . values ( ) , unmodifiableArray . values ( ) ) |
getProviders_shouldReturnEmptyListIfPassedEmptyList ( ) { java . util . List < org . openmrs . Provider > providers = org . openmrs . module . htmlformentry . HtmlFormEntryUtil . getProviders ( new java . util . ArrayList < org . openmrs . module . providermanagement . ProviderRole > ( ) ) ; "<AssertPlaceHolder>" ; } g... | org . junit . Assert . assertThat ( providers . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) ) |
determinesFacingLeftDown ( ) { com . fundynamic . d2tm . math . Vector2D coordinatesToFaceTo = unitAbsoluteMapCoordinates . add ( create ( ( - 1 ) , 1 ) ) ; "<AssertPlaceHolder>" ; } determine ( com . fundynamic . d2tm . math . Vector2D , com . fundynamic . d2tm . math . Vector2D ) { boolean left = ( to . getXAsInt ( )... | org . junit . Assert . assertEquals ( com . fundynamic . d2tm . game . entities . units . LEFT_DOWN , determine ( unitAbsoluteMapCoordinates , coordinatesToFaceTo ) ) |
testGetRegion ( ) { final java . lang . String name = this . name . getMethodName ( ) ; org . apache . hadoop . hbase . TestMetaTableAccessor . LOG . info ( ( "Started<sp>" + name ) ) ; org . apache . hadoop . hbase . util . Pair < org . apache . hadoop . hbase . client . RegionInfo , org . apache . hadoop . hbase . Se... | org . junit . Assert . assertNull ( pair ) |
testDestroy ( ) { tested . destroy ( ) ; "<AssertPlaceHolder>" ; } getParent ( ) { return parent ; } | org . junit . Assert . assertNull ( tested . getParent ( ) ) |
shouldOutputNoneWhenNoKillingTestFound ( ) { final org . pitest . mutationtest . MutationResult mr = createSurvivingMutant ( ) ; this . testee . handleMutationResult ( org . pitest . mutationtest . report . MutationTestResultMother . createClassResults ( mr ) ) ; final java . lang . String expected = "<mutation<sp>dete... | org . junit . Assert . assertEquals ( expected , this . out . toString ( ) ) |
testWaitOnCompletionMapReduceExceptionSet ( ) { org . pentaho . bigdata . api . mapreduce . MapReduceExecutionException mapReduceExecutionException = new org . pentaho . bigdata . api . mapreduce . MapReduceExecutionException ( "" ) ; exceptionAtomicReference . set ( mapReduceExecutionException ) ; try { futureMapReduc... | org . junit . Assert . assertEquals ( mapReduceExecutionException , e ) |
createOrganizationDisplayName_OrganizationNameNotExisting ( ) { org . oscm . reportingservice . business . SupplierRevenueShareBuilder builder = new org . oscm . reportingservice . business . SupplierRevenueShareBuilder ( null , null , null , null , null ) ; java . lang . String displayName = builder . createOrganizati... | org . junit . Assert . assertEquals ( "id" , displayName ) |
getStatusCodeShouldNotThrowExceptionWhenCodeIsNull ( ) { com . twilio . exception . ApiException error = new com . twilio . exception . ApiException ( anyMessage ) ; "<AssertPlaceHolder>" ; } getStatusCode ( ) { return status ; } | org . junit . Assert . assertEquals ( null , error . getStatusCode ( ) ) |
testBadDateInGreater ( ) { try { modelOf ( "'2014-0x-01T12:30:00.000Z'<sp>><sp>timestamp" ) ; org . junit . Assert . fail ( ) ; } catch ( com . questdb . griffin . SqlException e ) { "<AssertPlaceHolder>" ; } } getPosition ( ) { return 0 ; } | org . junit . Assert . assertEquals ( 0 , e . getPosition ( ) ) |
testFindByPrimaryKeyExisting ( ) { com . liferay . journal . model . JournalArticleLocalization newJournalArticleLocalization = addJournalArticleLocalization ( ) ; com . liferay . journal . model . JournalArticleLocalization existingJournalArticleLocalization = _persistence . findByPrimaryKey ( newJournalArticleLocaliz... | org . junit . Assert . assertEquals ( existingJournalArticleLocalization , newJournalArticleLocalization ) |
testIsInhoudelijkGelijkAanNull ( ) { final nl . bzk . algemeenbrp . dal . domein . brp . entity . PersoonSamengesteldeNaamHistorie voorkomen1 = maakTemplateVoorkomen ( ) ; "<AssertPlaceHolder>" ; } isInhoudelijkGelijkAan ( nl . bzk . migratiebrp . synchronisatie . dal . domein . brp . kern . entity . LandOfGebied ) { i... | org . junit . Assert . assertFalse ( voorkomen1 . isInhoudelijkGelijkAan ( null ) ) |
testPile4 ( ) { lombok . val arrayW = org . nd4j . linalg . factory . Nd4j . create ( 1 , 5 ) ; lombok . val arrayX = org . nd4j . linalg . factory . Nd4j . create ( 1 , 5 ) ; lombok . val arrayY = org . nd4j . linalg . factory . Nd4j . create ( 1 , 5 ) ; lombok . val arrayZ = org . nd4j . linalg . factory . Nd4j . pil... | org . junit . Assert . assertArrayEquals ( new long [ ] { 3 , 1 , 5 } , arrayZ . shape ( ) ) |
testPreproStrat ( ) { for ( dk . alexandra . fresco . suite . spdz . configuration . PreprocessingStrategy pps : dk . alexandra . fresco . suite . spdz . configuration . PreprocessingStrategy . values ( ) ) { dk . alexandra . fresco . suite . spdz . configuration . PreprocessingStrategy strat = dk . alexandra . fresco ... | org . junit . Assert . assertEquals ( pps , strat ) |
runTest ( ) { boolean result = checkNoError ( "Social_Activities_Get_All_Todos" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; } | org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result ) |
testGet_LazyListInput ( ) { java . lang . Object input = com . firefly . utils . collection . LazyList . add ( null , "a" ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Object , int ) { if ( list == null ) throw new java . lang . IndexOutOfBoundsException ( ) ; if ( list instanceof com . firefly . utils . collection... | org . junit . Assert . assertEquals ( "a" , com . firefly . utils . collection . LazyList . get ( input , 0 ) ) |
startsOutWithAnEmptyMap ( ) { "<AssertPlaceHolder>" ; } empty ( ) { return instantiate ( findConstructor ( com . pholser . junit . quickcheck . generator . java . util . MapGenerator . types ( ) . get ( 0 ) ) ) ; } | org . junit . Assert . assertTrue ( generator . empty ( ) . isEmpty ( ) ) |
testUserAgent ( ) { com . blade . mvc . Map < java . lang . String , java . lang . String > headers = com . blade . mvc . Collections . singletonMap ( "User-Agent" , firefoxUA ) ; com . blade . mvc . http . Request mockRequest = mockHttpRequest ( "GET" ) ; when ( mockRequest . headers ( ) ) . thenReturn ( headers ) ; c... | org . junit . Assert . assertEquals ( firefoxUA , request . userAgent ( ) ) |
testGetDateTimeStr ( ) { java . lang . String receive ; Calendar calendar = Calendar . getInstance ( ) ; java . util . Date currentDate = calendar . getTime ( ) ; java . sql . Date dateReturn = new java . sql . Date ( currentDate . getTime ( ) ) ; java . text . SimpleDateFormat formater = new java . text . SimpleDateFo... | org . junit . Assert . assertEquals ( receive , waiting ) |
testUntagResources ( ) { java . util . List < com . myjeeva . digitalocean . pojo . Resource > resources = new java . util . ArrayList < com . myjeeva . digitalocean . pojo . Resource > ( ) ; resources . add ( new com . myjeeva . digitalocean . pojo . Resource ( "3794738" , com . myjeeva . digitalocean . common . Resou... | org . junit . Assert . assertNotNull ( result ) |
testEndLessThanStart ( ) { final long time = 123987564019283L ; final org . locationtech . geowave . core . geotime . index . dimension . TemporalBinningStrategy binStrategy = new org . locationtech . geowave . core . geotime . index . dimension . TemporalBinningStrategy ( org . locationtech . geowave . core . geotime ... | org . junit . Assert . assertEquals ( 0 , ranges . length ) |
testCheckNullRequestMethod ( ) { com . erudika . para . utils . filters . MockHttpServletRequest request = new com . erudika . para . utils . filters . MockHttpServletRequest ( ) ; request . setHeader ( CORSFilter . REQUEST_HEADER_ORIGIN , "http://tomcat.apache.org" ) ; request . setMethod ( null ) ; com . erudika . pa... | org . junit . Assert . assertEquals ( CORSFilter . CORSRequestType . INVALID_CORS , requestType ) |
testNullEntityStatusResponse ( ) { "<AssertPlaceHolder>" ; } createStatus ( org . apache . http . HttpResponse ) { if ( ( response == null ) || ( ( response . getEntity ( ) ) == null ) ) { throw new java . io . IOException ( "unreadable<sp>response!" ) ; } final java . lang . String body = org . apache . http . util . ... | org . junit . Assert . assertNull ( net . pushover . client . PushoverResponseFactory . createStatus ( response ) ) |
testNoMinimumTimeBeforeFirstSubmission ( ) { "<AssertPlaceHolder>" ; } tick ( long ) { final long nextUpload = getNextSubmission ( ) ; if ( nextUpload >= ( localTime + ( 3 * ( getMinimumTimeBetweenUploads ( ) ) ) ) ) { org . mozilla . gecko . background . common . log . Logger . warn ( org . mozilla . gecko . backgroun... | org . junit . Assert . assertTrue ( policy . tick ( 0 ) ) |
shouldNotChangeCellWhenEditingAndArrowUpKeyIsPressed ( ) { final com . vaadin . addon . spreadsheet . elements . SheetCellElement b2 = spreadSheet . getCellAt ( "B2" ) ; b2 . setValue ( "123" ) ; sheetController . selectCell ( "B2" ) ; new org . openqa . selenium . interactions . Actions ( getDriver ( ) ) . sendKeys ( ... | org . junit . Assert . assertThat ( selectedCell , org . hamcrest . CoreMatchers . is ( "B2" ) ) |
testConvertALlWithEmptyFields ( ) { java . util . List < org . lnu . is . resource . asset . address . AssetAddressResource > expecteds = java . util . Collections . emptyList ( ) ; java . util . List < org . lnu . is . domain . asset . address . AssetAddress > sources = java . util . Collections . emptyList ( ) ; java... | org . junit . Assert . assertEquals ( expecteds , actuals ) |
testGetNorm ( ) { final double x = getPreferredEntryValue ( ) ; final double [ ] data = new double [ ] { x , x , 1.0 , x , 2.0 , x , x , 3.0 , x } ; final org . hipparchus . linear . RealVector v = create ( data ) ; final double actual = v . getNorm ( ) ; double expected = 0.0 ; for ( int i = 0 ; i < ( data . length ) ... | org . junit . Assert . assertEquals ( "" , expected , actual , 0.0 ) |
converteerLg01NaarLo3PersoonslijstOk ( ) { final java . lang . String filename = "Omzetting.txt" ; final java . io . InputStream inputStream = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( filename ) ; final java . util . List < nl . bzk . migratiebrp . conversie . model . lo3 . syntax . Lo3Categorie... | org . junit . Assert . assertTrue ( ( ( result . size ( ) ) > 1 ) ) |
concurrent_test ( ) { final java . util . concurrent . atomic . AtomicInteger exceptions = new java . util . concurrent . atomic . AtomicInteger ( ) ; final java . util . concurrent . ExecutorService executorService = java . util . concurrent . Executors . newFixedThreadPool ( net . ripe . db . whois . api . rest . cli... | org . junit . Assert . assertThat ( exceptions . get ( ) , org . hamcrest . Matchers . is ( 0 ) ) |
test0 ( ) { com . navercorp . pinpoint . profiler . interceptor . factory . AnnotatedInterceptorFactory factory = newAnnotatedInterceptorFactory ( ) ; final com . navercorp . pinpoint . profiler . instrument . ScopeInfo scopeInfo = newEmptyScopeInfo ( ) ; com . navercorp . pinpoint . bootstrap . interceptor . Intercept... | org . junit . Assert . assertEquals ( com . navercorp . pinpoint . profiler . plugin . TestInterceptors . TestInterceptor0 . class , interceptor . getClass ( ) ) |
testSerialization ( ) { org . jfree . chart . plot . CombinedDomainXYPlot plot1 = createPlot ( ) ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutput out = new java . io . ObjectOutputStream ( buffer ) ; out . writeObject ( plot1 ) ; out . close ( ) ; java . ... | org . junit . Assert . assertEquals ( plot1 , plot2 ) |
testMultipleArgsAdd ( ) { int result = stub . add ( 3 , 5 , 2 ) ; "<AssertPlaceHolder>" ; } add ( int , int , int ) { return ( arg1 + arg2 ) + arg3 ; } | org . junit . Assert . assertEquals ( 10 , result ) |
testCommandLineOverride ( ) { int testTopics = 50 ; java . lang . String [ ] args = new java . lang . String [ ] { "--topics=" + testTopics , "--run_cfg=src/main/resources/configuration/UnitTestConfig.cfg" } ; cc . mallet . configuration . LDACommandLineParser cp = new cc . mallet . configuration . LDACommandLineParser... | org . junit . Assert . assertTrue ( ( testTopics == gottenTopics ) ) |
testConvertTweetString ( ) { java . util . List < org . apache . streams . pojo . json . Activity > activityList = activityConverterUtil . convert ( tweetJson ) ; "<AssertPlaceHolder>" ; org . apache . streams . pojo . json . Activity activity = activityList . get ( 0 ) ; if ( ! ( org . apache . streams . data . util .... | org . junit . Assert . assertTrue ( ( ( activityList . size ( ) ) == 1 ) ) |
testBuildWithDisabledStatusConstraint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . order . Order context = new org . lnu . is . domain . order . Order ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>Order<sp>e<sp>WHERE<sp>e.crtUserGroup<sp>IN<sp>(:userGroups)<sp>" ; org . lnu . is . pagina... | org . junit . Assert . assertEquals ( expected , actualQuery ) |
testGetKeyspaceFromRhombusStorage ( ) { com . pardot . rhombus . helpers . ConnectionManagerTester cm = getConnectionManager ( ) ; cm . dropKeyspace ( cm . getRhombusKeyspaceName ( ) ) ; com . pardot . rhombus . functional . CKeyspaceDefinition definition = com . pardot . rhombus . util . JsonUtil . objectFromJsonResou... | org . junit . Assert . assertEquals ( definition , rhombusStorageKeyspaceDefinition ) |
testIgnoreBetweenSpecialComments ( ) { net . sourceforge . pmd . cpd . SourceCode sourceCode = new net . sourceforge . pmd . cpd . SourceCode ( new net . sourceforge . pmd . cpd . SourceCode . StringCodeLoader ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "%<sp>CPD-OFF" + ( net . sourceforge . pmd . PMD . EOL ) ) + "function<sp>g<sp>=... | org . junit . Assert . assertEquals ( 2 , tokens . size ( ) ) |
newAccessTokenNoRequestToken ( ) { when ( tokenDao . getByToken ( anyString ( ) ) ) . thenReturn ( null ) ; com . sun . jersey . oauth . server . spi . OAuthToken t = provider . newAccessToken ( token , "" ) ; "<AssertPlaceHolder>" ; } newAccessToken ( com . sun . jersey . oauth . server . spi . OAuthToken , java . lan... | org . junit . Assert . assertNull ( t ) |
testIsEqual ( ) { com . eclipsesource . tabris . tracking . Order order = new com . eclipsesource . tabris . tracking . Order ( "foo" , java . math . BigDecimal . ONE ) ; com . eclipsesource . tabris . tracking . Order order2 = new com . eclipsesource . tabris . tracking . Order ( "foo" , java . math . BigDecimal . ONE... | org . junit . Assert . assertEquals ( order , order2 ) |
should_put_element_with_media_type_in_cache ( ) { fr . norad . visuwall . providers . common . ResourceCache cache = new fr . norad . visuwall . providers . common . ResourceCache ( ) ; java . lang . Class < java . lang . Object > clazz = java . lang . Object . class ; java . lang . Object object = new java . lang . Ob... | org . junit . Assert . assertEquals ( object , cache . get ( url , clazz , mediaType ) ) |
testGetString ( ) { org . teiid . core . types . SQLXMLImpl xml = new org . teiid . core . types . SQLXMLImpl ( testStr ) ; "<AssertPlaceHolder>" ; } getString ( ) { return this . reference . getString ( ) ; } | org . junit . Assert . assertEquals ( testStr , xml . getString ( ) ) |
testTrueCondWithElse ( ) { java . lang . String template = "<if(name)>works<else>fail<endif>" ; org . stringtemplate . v4 . ST st = new org . stringtemplate . v4 . ST ( template ) ; st . add ( "name" , "Ter" ) ; java . lang . String expected = "works" ; java . lang . String result = st . render ( ) ; "<AssertPlaceHolde... | org . junit . Assert . assertEquals ( expected , result ) |
testExtensionsValidatorNull ( ) { com . ibm . ws . microprofile . openapi . impl . validation . ExtensionValidator validator = com . ibm . ws . microprofile . openapi . impl . validation . ExtensionValidator . getInstance ( ) ; com . ibm . ws . microprofile . openapi . test . utils . TestValidationHelper vh = new com .... | org . junit . Assert . assertEquals ( 0 , vh . getEventsSize ( ) ) |
testSnapshotSingleServer ( ) { final int nTxns = 20 ; com . github . zk1931 . jzab . QuorumTestCallback cb1 = new com . github . zk1931 . jzab . QuorumTestCallback ( ) ; com . github . zk1931 . jzab . SnapshotStateMachine st1 = new com . github . zk1931 . jzab . SnapshotStateMachine ( nTxns ) ; java . lang . String ser... | org . junit . Assert . assertEquals ( st1 . state , stNew . state ) |
shouldInjectFlushAfterWriteConfigBeforeFirstReadConfig ( ) { org . kaazing . k3po . lang . internal . ast . AstScriptNode expectedScriptNode = new org . kaazing . k3po . lang . internal . ast . builder . AstScriptNodeBuilder ( ) . addConnectStream ( ) . addConnectedEvent ( ) . done ( ) . addWriteConfigCommand ( ) . don... | org . junit . Assert . assertEquals ( expectedScriptNode , actualScriptNode ) |
getPartitionLocations ( ) { java . util . List < org . apache . hadoop . fs . Path > paths = com . google . common . collect . Lists . newArrayList ( path , missingPath ) ; when ( sourceLocationManager . getPartitionLocations ( ) ) . thenReturn ( paths ) ; java . util . List < org . apache . hadoop . fs . Path > filter... | org . junit . Assert . assertThat ( filteredPaths , org . hamcrest . CoreMatchers . is ( expected ) ) |
loadTurtleFile ( ) { final org . apache . rya . api . client . Install . InstallConfiguration installConfig = org . apache . rya . api . client . Install . InstallConfiguration . builder ( ) . setEnableTableHashPrefix ( false ) . setEnableEntityCentricIndex ( false ) . setEnableFreeTextIndex ( false ) . setEnableTempor... | org . junit . Assert . assertEquals ( expected , statements ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.