input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
shouldReturnEqualForSameObjectIdsAndLocation ( ) { org . eclipse . egit . ui . internal . synchronize . model . GitModelCacheFile left = createCacheFile ( zeroId ( ) , fromString ( "390b6b146aa218a9c985e6ce9df2845eb575be48" ) , getFile1Location ( ) ) ; org . eclipse . egit . ui . internal . synchronize . model . GitMod...
org . junit . Assert . assertTrue ( actual )
testSplitDomain2 ( ) { logger . info ( "splitDomain2" ) ; java . lang . String domain = "example.com" ; java . util . Map < com . datumbox . framework . core . common . text . parsers . URLParser . DomainParts , java . lang . String > expResult = new java . util . HashMap ( ) ; expResult . put ( URLParser . DomainParts...
org . junit . Assert . assertEquals ( expResult , result )
should_return_this ( ) { org . fest . assertions . api . CharacterAssert returned = assertions . isNotLessThan ( expected ) ; "<AssertPlaceHolder>" ; } isNotLessThan ( byte ) { bytes . assertNotLessThan ( description , actual , expected ) ; return this ; }
org . junit . Assert . assertSame ( assertions , returned )
shouldReturnNotEqualWhenCacheTreeAndCommit ( ) { org . eclipse . egit . ui . internal . synchronize . model . GitModelObject left = new org . eclipse . egit . ui . internal . synchronize . model . GitModelCache ( createModelRepository ( ) , lookupRepository ( leftRepoFile ) , null ) ; org . eclipse . egit . ui . intern...
org . junit . Assert . assertFalse ( actual )
shouldExportDocIdQueryWithAllOptions ( ) { com . couchbase . client . java . search . queries . DocIdQuery fts = com . couchbase . client . java . search . SearchQuery . docId ( "id1" , "id2" ) . boost ( 1.5 ) . docIds ( "id3" ) ; com . couchbase . client . java . search . SearchQuery query = new com . couchbase . clie...
org . junit . Assert . assertEquals ( expected , query . export ( ) )
auditLoggingOffForInboundDR ( ) { ihe . iti . xds_b . _2007 . RetrieveDocumentSetRequestType request = new ihe . iti . xds_b . _2007 . RetrieveDocumentSetRequestType ( ) ; gov . hhs . fha . nhinc . common . nhinccommon . AssertionType assertion = new gov . hhs . fha . nhinc . common . nhinccommon . AssertionType ( ) ; ...
org . junit . Assert . assertSame ( expectedResponse , actualResponse )
getSystemVariableScope ( ) { "<AssertPlaceHolder>" ; } getVariableScope ( java . lang . String ) { switch ( codeOfScope ) { case "s" : return org . pentaho . di . trans . steps . scriptvalues_mod . ScriptValuesAddedFunctions . VariableScope . SYSTEM ; case "r" : return org . pentaho . di . trans . steps . scriptvalues_...
org . junit . Assert . assertEquals ( org . pentaho . di . trans . steps . scriptvalues_mod . ScriptValuesAddedFunctions . getVariableScope ( "s" ) , ScriptValuesAddedFunctions . VariableScope . SYSTEM )
stressTestSlotLocks ( ) { com . hortonworks . registries . common . SlotSynchronizer < java . lang . Integer > slotSynchronizer = new com . hortonworks . registries . common . SlotSynchronizer ( ) ; int key = new java . util . Random ( ) . nextInt ( ) ; int size = 64 ; long limit = 1000000 ; java . util . concurrent . ...
org . junit . Assert . assertEquals ( ( limit * size ) , aggregatedCount . get ( ) )
getMessageCallbackContextWithSavedInput ( tests . unit . com . microsoft . azure . sdk . iot . device . MessageCallback ) { java . lang . String inputName = "someValidInputName" ; final java . lang . String iotHubHostname = "test.iothubhostname" ; final java . lang . String deviceId = "test-deviceid" ; final java . lan...
org . junit . Assert . assertThat ( testContext , org . hamcrest . CoreMatchers . is ( expectedContext ) )
testMethodPostThing ( ) { javax . ws . rs . client . Invocation . Builder request = org . jboss . resteasy . test . rx . RxCompletionStageServerAsyncTest . client . target ( org . jboss . resteasy . test . rx . RxCompletionStageServerAsyncTest . generateURL ( "/post/thing" ) ) . request ( ) ; org . jboss . resteasy . t...
org . junit . Assert . assertEquals ( new org . jboss . resteasy . test . rx . resource . Thing ( "a" ) , t )
testIsValidBackupFilename_withValidZipBackupFilename_succeeds ( ) { java . lang . String givenFilename = "/example/filename.zip" ; boolean result = this . target . isValidBackupFilename ( givenFilename ) ; "<AssertPlaceHolder>" ; } isValidBackupFilename ( java . lang . String ) { return ( isValidZipBackupFilename ( fil...
org . junit . Assert . assertTrue ( result )
testBuildWithDisabledStatusConstraint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . mark . scale . MarkScale context = new org . lnu . is . domain . mark . scale . MarkScale ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>MarkScale<sp>e<sp>WHERE<sp>e.crtUserGroup<sp>IN<sp>(:userGroups)<sp>"...
org . junit . Assert . assertEquals ( expected , actualQuery )
testCompatibleCategoriesUnknownType ( ) { com . twelvemonkeys . util . service . Iterator < java . lang . Class < ? > > categories = registry . compatibleCategories ( new java . lang . Object ( ) ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return indexIter . hasNext ( ) ; }
org . junit . Assert . assertFalse ( categories . hasNext ( ) )
eb10_lengthRequired ( ) { try { org . apache . juneau . rest . client . remote . EndToEndInterfaceTest . ieb . lengthRequired ( ) ; org . junit . Assert . fail ( ) ; } catch ( org . apache . juneau . rest . client . remote . LengthRequired e ) { "<AssertPlaceHolder>" ; } } getMessage ( ) { return msg ; }
org . junit . Assert . assertEquals ( "foo" , e . getMessage ( ) )
testToArrayWithClass ( ) { com . carrotsearch . hppc . KTypeArrayList < java . lang . Integer > l1 = com . carrotsearch . hppc . KTypeArrayList . from ( 1 , 2 , 3 ) ; java . lang . Integer [ ] result = l1 . toArray ( com . carrotsearch . hppc . Integer . class ) ; "<AssertPlaceHolder>" ; } toArray ( KType [ ] ) { asser...
org . junit . Assert . assertArrayEquals ( new java . lang . Integer [ ] { 1 , 2 , 3 } , result )
testSearch ( ) { java . util . List < com . artivisi . belajar . restful . domain . ApplicationConfig > result = service . findApplicationConfigs ( "name" , new org . springframework . data . domain . PageRequest ( 0 , 5 ) ) . getContent ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( ( ( result . size ( ) ) == 1 ) )
testCreateRawKeyedStateOutput ( ) { org . apache . flink . runtime . state . KeyedStateCheckpointOutputStream stream = snapshotContext . getRawKeyedOperatorStateOutput ( ) ; "<AssertPlaceHolder>" ; } getRawKeyedOperatorStateOutput ( ) { if ( null == ( keyedStateCheckpointOutputStream ) ) { org . apache . flink . util ....
org . junit . Assert . assertNotNull ( stream )
getAllPrivileges_shouldReturnAllPrivilegesInTheSystem ( ) { executeDataSet ( org . openmrs . api . UserServiceTest . XML_FILENAME ) ; java . util . List < org . openmrs . Privilege > privileges = userService . getAllPrivileges ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return getMemberships ( ) . stream ( ) . filter ( ...
org . junit . Assert . assertEquals ( 1 , privileges . size ( ) )
objectShouldBeEquals ( ) { org . eclipse . che . ide . ext . java . jdi . shared . VariablePath path = mock ( org . eclipse . che . ide . ext . java . jdi . shared . VariablePath . class ) ; org . eclipse . che . ide . ext . java . jdi . client . debug . DebuggerVariable testVariable = new org . eclipse . che . ide . e...
org . junit . Assert . assertThat ( isEquals , org . hamcrest . CoreMatchers . is ( true ) )
testOrderingOfPriorityLevel ( ) { jannovar . common . VariantType [ ] n = jannovar . common . VariantType . getPrioritySortedList ( ) ; for ( int i = 1 ; i < ( n . length ) ; ++ i ) { "<AssertPlaceHolder>" ; } } priorityLevel ( jannovar . common . VariantType ) { switch ( vt ) { case FS_DELETION : case FS_INSERTION : c...
org . junit . Assert . assertTrue ( ( ( jannovar . common . VariantType . priorityLevel ( n [ ( i - 1 ) ] ) ) <= ( jannovar . common . VariantType . priorityLevel ( n [ i ] ) ) ) )
testVersioning ( ) { org . apache . chemistry . opencmis . client . api . CmisObject ob = session . getObjectByPath ( "/testfolder1/testfile1" ) ; java . lang . String id = ob . getId ( ) ; checkValue ( PropertyIds . IS_LATEST_VERSION , Boolean . FALSE , ob ) ; checkValue ( PropertyIds . IS_MAJOR_VERSION , Boolean . FA...
org . junit . Assert . assertEquals ( id , coid . getId ( ) )
testEntryDate ( ) { com . sap . core . odata . ref . model . Employee employee1 = new com . sap . core . odata . ref . model . Employee ( 1 , null ) ; final java . util . Calendar date1 = java . util . Calendar . getInstance ( ) ; employee1 . setEntryDate ( date1 ) ; "<AssertPlaceHolder>" ; } getEntryDate ( ) { return ...
org . junit . Assert . assertEquals ( date1 , employee1 . getEntryDate ( ) )
listAllVisibilityOptionsForwardsCalls ( ) { org . phenotips . data . permissions . EntityPermissionsManager internal = this . mocker . getInstance ( org . phenotips . data . permissions . EntityPermissionsManager . class , "secure" ) ; java . util . List < org . phenotips . data . permissions . Visibility > visibilitie...
org . junit . Assert . assertSame ( visibilities , returnedVisibilities )
testConvertToAvroLong ( ) { long expected = 123456789L ; org . talend . daikon . avro . converter . AvroConverter < java . lang . Object , java . lang . Object > converter = org . talend . codegen . converter . IdentityConverter . getInstance ( ) ; long actual = ( ( java . lang . Long ) ( converter . convertToAvro ( ex...
org . junit . Assert . assertEquals ( expected , actual )
testReferenceGetInvalidValue ( ) { com . mongodb . BasicDBObject given = new com . mongodb . BasicDBObject ( ) ; com . ebay . cloud . cms . dal . entity . flatten . impl . NewBsonEntity appEntity = new com . ebay . cloud . cms . dal . entity . flatten . impl . NewBsonEntity ( com . ebay . cloud . cms . dal . entity . f...
org . junit . Assert . assertEquals ( 0 , services . size ( ) )
testToString ( ) { "<AssertPlaceHolder>" ; } create ( java . lang . Object [ ] ) { return new org . dayatang . domain . PositionalParameters ( params ) ; }
org . junit . Assert . assertEquals ( java . util . Arrays . toString ( params ) , org . dayatang . domain . PositionalParameters . create ( params ) . toString ( ) )
testSerialization ( ) { org . jfree . chart . axis . PeriodAxis a1 = new org . jfree . chart . axis . PeriodAxis ( "Test<sp>Axis" ) ; org . jfree . chart . axis . PeriodAxis a2 = ( ( org . jfree . chart . axis . PeriodAxis ) ( org . jfree . chart . TestUtilities . serialised ( a1 ) ) ) ; boolean b = a1 . equals ( a2 ) ...
org . junit . Assert . assertTrue ( b )
testGetAnalysisPhase ( ) { org . owasp . dependencycheck . analyzer . AnalysisPhase expResult = AnalysisPhase . FINDING_ANALYSIS ; org . owasp . dependencycheck . analyzer . AnalysisPhase result = analyzer . getAnalysisPhase ( ) ; "<AssertPlaceHolder>" ; } getAnalysisPhase ( ) { throw new java . lang . UnsupportedOpera...
org . junit . Assert . assertEquals ( expResult , result )
testRemoveProperty ( ) { "<AssertPlaceHolder>" ; verify ( dlg , times ( 1 ) ) . removeProperty ( "propName" ) ; verify ( autosaveMgr , times ( 1 ) ) . autosave ( ) ; } removeProperty ( java . lang . String ) { getWrappedNodeBuilder ( ) . removeProperty ( name ) ; return this ; }
org . junit . Assert . assertFalse ( a . removeProperty ( "propName" ) )
testParseZeroImaginary ( ) { java . lang . String source = ( "-1" + ( getDecimalCharacter ( ) ) ) + "2323" ; org . apache . commons . math3 . complex . Complex expected = new org . apache . commons . math3 . complex . Complex ( ( - 1.2323 ) , 0 ) ; org . apache . commons . math3 . complex . Complex actual = complexForm...
org . junit . Assert . assertEquals ( expected , actual )
testAsyncDetached ( ) { org . robolectric . Robolectric . getFakeHttpLayer ( ) . interceptHttpRequests ( false ) ; java . lang . String subpath = "/asyncdetached" ; java . lang . String body = "hello" ; stubFor ( get ( urlEqualTo ( subpath ) ) . willReturn ( aResponse ( ) . withStatus ( 200 ) . withBody ( body ) ) ) ; ...
org . junit . Assert . assertTrue ( response . equals ( body ) )
testUsesAndroidTheme ( ) { registerTheme ( Constants . THEME_ID_ANDROID ) ; com . eclipsesource . tabris . test . util . TabrisRequest request = environment . getRequest ( ) ; request . setHeader ( Constants . USER_AGENT , Constants . ID_ANDROID ) ; provider . accept ( request ) ; java . lang . String currentTheme = ( ...
org . junit . Assert . assertEquals ( Constants . THEME_ID_ANDROID , currentTheme )
testRemove ( ) { p1 . remove ( ) ; "<AssertPlaceHolder>" ; } v ( ) { return getGraph ( ) . v ( ) ; }
org . junit . Assert . assertEquals ( 1 , p1 . v ( ) . count ( ) )
testRemoveInstanceData ( ) { org . apache . ambari . server . view . ViewRegistry registry = org . apache . ambari . server . view . ViewRegistry . getInstance ( ) ; org . apache . ambari . server . orm . entities . ViewInstanceEntity viewInstanceEntity = org . apache . ambari . server . orm . entities . ViewInstanceEn...
org . junit . Assert . assertNull ( viewInstanceEntity . getInstanceData ( "foo" ) )
shouldReturnValidEmptyDetector ( ) { org . modeshape . jcr . mimetype . MimeTypeDetector detector = org . modeshape . jcr . mimetype . MimeTypeDetectors . createDetectorFor ( RepositoryConfiguration . FieldValue . MIMETYPE_DETECTION_NONE , environment ) ; "<AssertPlaceHolder>" ; } createDetectorFor ( java . lang . Stri...
org . junit . Assert . assertEquals ( NullMimeTypeDetector . INSTANCE , detector )
allocate ( ) { char [ ] letters = arrayOfChar ( 500 ) ; "<AssertPlaceHolder>" ; } len ( java . lang . Object ) { return org . boon . core . Conversions . len ( obj ) ; }
org . junit . Assert . assertEquals ( 500 , len ( letters ) )
givenUsingGuava__whenByteArrayInputStreamToAByteBuffer_thenLengthMustMatch ( ) { java . io . InputStream initialStream = com . google . common . io . ByteSource . wrap ( new byte [ ] { 0 , 1 , 2 } ) . openStream ( ) ; byte [ ] targetArray = com . google . common . io . ByteStreams . toByteArray ( initialStream ) ; java...
org . junit . Assert . assertEquals ( bufferByte . position ( ) , targetArray . length )
testProcess_broken ( ) { System . out . println ( "broken" ) ; kg . apc . jmeter . modifiers . RawRequestSourcePreProcessor instance = new kg . apc . jmeter . modifiers . RawRequestSourcePreProcessor ( ) ; instance . testStarted ( ) ; instance . setFileName ( ( ( basedir ) + "/rawdata_broken.txt" ) ) ; int n = 1 ; try ...
org . junit . Assert . assertEquals ( 3 , n )
testApplyStaticNatVspCommand ( ) { _resource . configure ( "NuageVspResource" , _hostDetails ) ; net . nuage . vsp . acs . client . api . model . VspNetwork vspNetwork = buildVspNetwork ( ) ; java . util . List < net . nuage . vsp . acs . client . api . model . VspStaticNat > vspStaticNatDetails = com . google . common...
org . junit . Assert . assertTrue ( applyNatAns . getResult ( ) )
shouldRaiseConstraintViolationWithNoGroupsCauseNullTitleAndPrice ( ) { org . agoncal . book . javaee7 . chapter03 . ex21 . CD21 cd = new org . agoncal . book . javaee7 . chapter03 . ex21 . CD21 ( ) ; cd . setDescription ( "Best<sp>Jazz<sp>CD<sp>ever" ) ; java . util . Set < org . agoncal . book . javaee7 . chapter03 . ...
org . junit . Assert . assertEquals ( 2 , violations . size ( ) )
testSzenario_003_withValidData_1 ( ) { com . vividsolutions . jts . geom . MultiPolygon splitee = ( ( com . vividsolutions . jts . geom . MultiPolygon ) ( org . locationtech . tools . geometry . split . SplitTestUtil . read ( "MULTIPOLYGON(((1<sp>1,<sp>1<sp>8,<sp>10<sp>8,<sp>10<sp>1,<sp>1<sp>1),(2<sp>3,<sp>8<sp>3,<sp>8...
org . junit . Assert . assertTrue ( splitee . isValid ( ) )
testAttachDisk ( ) { initializeExpectedInstance ( 2 ) ; expect ( compute . getOptions ( ) ) . andReturn ( mockOptions ) ; com . google . cloud . compute . deprecated . AttachedDisk . PersistentDiskConfiguration configuration = AttachedDisk . PersistentDiskConfiguration . of ( com . google . cloud . compute . deprecated...
org . junit . Assert . assertSame ( operation , instance . attachDisk ( configuration ) )
testRequestParameterExists ( ) { org . ocpsoft . rewrite . servlet . config . RequestParameter parameter = org . ocpsoft . rewrite . servlet . config . RequestParameter . exists ( "foo" ) ; org . ocpsoft . rewrite . mock . MockEvaluationContext context = new org . ocpsoft . rewrite . mock . MockEvaluationContext ( ) ; ...
org . junit . Assert . assertTrue ( parameter . evaluate ( rewrite , context ) )
emptyEmptyList ( ) { java . util . List < oasis . names . tc . ebxml_regrep . xsd . rim . _3 . SlotType1 > list = createList ( ) ; com . google . common . base . Optional < java . lang . String > result = gov . hhs . fha . nhinc . util . JaxbDocumentUtils . findSlotType ( list , "expected" ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertEquals ( com . google . common . base . Optional . absent ( ) , result )
test_dag_descendant_2 ( ) { slib . graph . model . graph . utils . WalkConstraint wc = new slib . graph . utils . WalkConstraintGeneric ( org . openrdf . model . vocabulary . RDFS . SUBCLASSOF , slib . graph . model . graph . utils . Direction . IN ) ; rvf = new slib . graph . algo . extraction . rvf . RVF_DAG ( g , wc...
org . junit . Assert . assertTrue ( ( ( desc . size ( ) ) == 4 ) )
testGetValidWithSomeValid ( ) { org . slc . sli . api . security . context . validator . StaffToStudentValidator mock = org . mockito . Mockito . spy ( validator ) ; org . mockito . Mockito . doReturn ( new java . util . HashSet < java . lang . String > ( java . util . Arrays . asList ( "1" ) ) ) . when ( mock ) . vali...
org . junit . Assert . assertTrue ( validated . isEmpty ( ) )
retrieveSubscriptionReportDataUnit1Unit2Unit3 ( ) { java . util . List < org . oscm . reportingservice . dao . ReportResultData > result = retrieveSubscriptionReportData ( supplierCustomer . getOrganizationId ( ) , java . util . Arrays . asList ( java . lang . Long . valueOf ( unit1 . getKey ( ) ) , java . lang . Long ...
org . junit . Assert . assertEquals ( 4 , result . size ( ) )
testGetSnakGroup ( ) { org . wikidata . wdtk . datamodel . helpers . Snak s = factory . getNoValueSnak ( factory . getPropertyIdValue ( "P42" , "foo" ) ) ; org . wikidata . wdtk . datamodel . helpers . SnakGroup o1 = org . wikidata . wdtk . datamodel . helpers . Datamodel . makeSnakGroup ( java . util . Collections . s...
org . junit . Assert . assertEquals ( o1 , o2 )
CreateRatePlans ( ) { net . billforward . model . Product product = net . billforward . model . Product . getByID ( "D3E0F064-9E67-492E-8CFC-73E97B0B006A" ) ; net . billforward . model . UnitOfMeasure unitOfMeasure = net . billforward . model . UnitOfMeasure . getByID ( "12024AB2-1CB4-447A-968E-C1AE9DAE1CBF" ) ; net . ...
org . junit . Assert . assertNotNull ( ratePlan )
shouldCreateClientWhenJndiAddrProvider ( ) { com . google . code . ssm . providers . CacheConfiguration conf = new com . google . code . ssm . providers . CacheConfiguration ( ) ; conf . setConsistentHashing ( true ) ; com . google . code . ssm . config . AddressProvider addrsProvider = new com . google . code . ssm . ...
org . junit . Assert . assertNotNull ( cache )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . portal . kernel . model . Website > websites = _persistence . fetchByPrimaryKeys ( primar...
org . junit . Assert . assertTrue ( websites . isEmpty ( ) )
test14 ( ) { org . demoiselle . jee . core . api . security . TokenType expResult = org . demoiselle . jee . core . api . security . TokenType . JWT ; org . demoiselle . jee . core . api . security . TokenType result = instance . getType ( ) ; "<AssertPlaceHolder>" ; } getType ( ) { return type ; }
org . junit . Assert . assertEquals ( expResult , result )
testDoImportWhenNoMigratableInstalled ( ) { context = new org . codice . ddf . configuration . migration . ImportMigrationContextImpl ( report , mockMigrationZipFile , MIGRATABLE_ID ) ; context . doImport ( ) ; "<AssertPlaceHolder>" ; thrown . expect ( org . codice . ddf . migration . MigrationException . class ) ; thr...
org . junit . Assert . assertThat ( report . hasErrors ( ) , org . hamcrest . Matchers . equalTo ( true ) )
validateSpecialCharactersGreaterThanEnd ( ) { java . lang . String fileName = "test>.txt" ; "<AssertPlaceHolder>" ; } hasSpecialCharacters ( java . lang . String ) { java . util . regex . Pattern special = java . util . regex . Pattern . compile ( org . digidoc4j . utils . Helper . SPECIAL_CHARACTERS ) ; java . util . ...
org . junit . Assert . assertTrue ( org . digidoc4j . utils . Helper . hasSpecialCharacters ( fileName ) )
testSearchUsers ( ) { java . lang . String someUserId = "someUserId" ; java . lang . String someName = "someName" ; java . lang . String someEmail = "someEmail" ; java . lang . String anotherUserId = "anotherUserId" ; java . lang . String anotherName = "anotherName" ; java . lang . String anotherEmail = "anotherEmail" ...
org . junit . Assert . assertEquals ( 2 , users . size ( ) )
testInsert ( ) { com . excilys . ebi . spring . dbunit . test . MyEntity myEntity = new com . excilys . ebi . spring . dbunit . test . MyEntity ( ) ; myEntity . setId ( "id2000" ) ; myEntity . setName ( "name2000" ) ; myEntityDao . saveOrUpdate ( myEntity ) ; java . util . List < com . excilys . ebi . spring . dbunit ....
org . junit . Assert . assertEquals ( 5 , entities . size ( ) )
singleFieldTest ( ) { if ( org . apache . hyracks . storage . am . bloomfilter . LOGGER . isLoggable ( Level . INFO ) ) { org . apache . hyracks . storage . am . bloomfilter . LOGGER . info ( "TESTING<sp>BLOOM<sp>FILTER" ) ; } org . apache . hyracks . storage . common . buffercache . IBufferCache bufferCache = harness ...
org . junit . Assert . assertTrue ( bf . contains ( tuple , hashes ) )
testCreateContextWithTransactedSessionMode ( ) { org . apache . qpid . proton . amqp . Binary txnId = new org . apache . qpid . proton . amqp . Binary ( new byte [ ] { ( ( byte ) ( 5 ) ) , ( ( byte ) ( 6 ) ) , ( ( byte ) ( 7 ) ) , ( ( byte ) ( 8 ) ) } ) ; try ( org . apache . qpid . jms . test . testpeer . TestAmqpPeer...
org . junit . Assert . assertEquals ( JMSContext . SESSION_TRANSACTED , context . getSessionMode ( ) )
testMinute ( ) { org . apache . cayenne . exp . Expression exp = org . apache . cayenne . exp . ExpressionFactory . exp ( "minute(timestampColumn)<sp>=<sp>59" ) ; try { long res = org . apache . cayenne . query . ObjectSelect . query ( org . apache . cayenne . testdo . date_time . DateTestEntity . class , exp ) . selec...
org . junit . Assert . assertEquals ( 1 , res )
getDescriptorFromServer_goodTag ( ) { io . dockstore . client . cli . nested . ToolClient toolClient = new io . dockstore . client . cli . nested . ToolClient ( containersApi , containertagsApi , usersApi , client , false ) ; io . swagger . client . model . SourceFile cwl = toolClient . getDescriptorFromServer ( ( ( ( ...
org . junit . Assert . assertNotNull ( cwl )
testReadFields ( ) { org . apache . accumulo . core . data . Range r = newRange ( "nuts" , "soup" ) ; java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; java . io . DataOutputStream dos = new java . io . DataOutputStream ( baos ) ; r . write ( dos ) ; dos . close ( ) ; java . io . Byte...
org . junit . Assert . assertEquals ( r , r2 )
testNewSystemTagCreator_0 ( ) { java . lang . String resUuid = java . util . UUID . randomUUID ( ) . toString ( ) ; org . zstack . tag . SystemTagCreator systemTagCreator = systemTag . newSystemTagCreator ( resUuid ) ; systemTagCreator . recreate = false ; systemTagCreator . unique = true ; systemTagCreator . ignoreIfE...
org . junit . Assert . assertNull ( result )
upgradeWorksToV21Test ( ) { javax . xml . bind . JAXBContext jaxbContext1 = javax . xml . bind . JAXBContext . newInstance ( org . orcid . jaxb . model . record . summary_v2 . Works . class ) ; javax . xml . bind . JAXBContext jaxbContext2 = javax . xml . bind . JAXBContext . newInstance ( org . orcid . jaxb . model . ...
org . junit . Assert . assertEquals ( v21Works1 , v21Works2 )
testOpenKeepClean ( ) { com . orientechnologies . orient . core . db . OrientDB orientDb = new com . orientechnologies . orient . core . db . OrientDB ( "embedded:./" , com . orientechnologies . orient . core . db . OrientDBConfig . defaultConfig ( ) ) ; try { orientDb . open ( "test" , "admin" , "admin" ) ; } catch ( ...
org . junit . Assert . assertFalse ( orientDb . exists ( "test" ) )
testRuleLabelOfPositiveClosure ( ) { org . antlr . tool . Grammar g = new org . antlr . tool . Grammar ( ( "grammar<sp>P;\n" + ( "a<sp>:<sp>x=b+;\n" + "b<sp>:<sp>ID;\n" ) ) ) ; java . lang . String expecting = "(rule<sp>a<sp>ARG<sp>RET<sp>scope<sp>(BLOCK<sp>(ALT<sp>(+<sp>(BLOCK<sp>(ALT<sp>(=<sp>x<sp>b)<sp><end-of-alt>)...
org . junit . Assert . assertEquals ( expecting , found )
testEvalWithFunction ( ) { java . lang . String str = ( ( ( ( ( ( ( ( ( ( ( ( ( "import<sp>" + ( org . drools . modelcompiler . domain . ChildFactWithObject . class . getCanonicalName ( ) ) ) + ";\n" ) + "import<sp>" ) + ( org . drools . modelcompiler . ComplexRulesTest . BusinessFunctions . class . getCanonicalName ( ...
org . junit . Assert . assertEquals ( 1 , ksession . fireAllRules ( ) )
whenNextThenResultFirstElement ( ) { linkedSet . add ( 2 ) ; linkedSet . add ( 1 ) ; linkedSet . add ( 2 ) ; java . util . Iterator itr = linkedSet . iterator ( ) ; "<AssertPlaceHolder>" ; } next ( ) { if ( ! ( hasNext ( ) ) ) { throw new java . util . NoSuchElementException ( ) ; } E item = currentNode . element ; cur...
org . junit . Assert . assertThat ( itr . next ( ) , org . hamcrest . core . Is . is ( 1 ) )
testAttribuutIsStamgegevenReferentieGeldigVoorLeveren ( ) { final nl . bzk . brp . domain . element . AttribuutElement attribuutElement = getAttribuutElement ( Element . PERSOON_NAAMGEBRUIK_ADELLIJKETITELCODE . getId ( ) ) ; final nl . bzk . brp . service . bevraging . zoekpersoongeneriek . AbstractZoekPersoonVerzoek b...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
testParseArgsWithMutexGroup ( ) { net . sourceforge . argparse4j . inf . MutuallyExclusiveGroup group = ap . addMutuallyExclusiveGroup ( "mutex" ) ; group . addArgument ( "--foo" ) ; group . addArgument ( "--bar" ) ; net . sourceforge . argparse4j . inf . Namespace res = ap . parseArgs ( "--foo<sp>bar" . split ( "<sp>"...
org . junit . Assert . assertEquals ( "bar" , res . get ( "foo" ) )
givenMultiThread_whenSafeCounterWithoutLockIncrement ( ) { java . util . concurrent . ExecutorService service = java . util . concurrent . Executors . newFixedThreadPool ( 3 ) ; com . baeldung . concurrent . atomic . SafeCounterWithoutLock safeCounter = new com . baeldung . concurrent . atomic . SafeCounterWithoutLock ...
org . junit . Assert . assertEquals ( 1000 , safeCounter . getValue ( ) )
testRemovePropertyNonAccessible ( ) { secureNodeBuilder . removeProperty ( org . apache . jackrabbit . oak . core . TestPermissionProvider . NAME_NON_ACCESSIBLE ) ; try { permissionProvider . canReadProperties = true ; "<AssertPlaceHolder>" ; } finally { permissionProvider . canReadProperties = false ; } } hasProperty ...
org . junit . Assert . assertTrue ( secureNodeBuilder . hasProperty ( org . apache . jackrabbit . oak . core . TestPermissionProvider . NAME_NON_ACCESSIBLE ) )
buildRunners_noValues ( ) { com . careerbuilder . search . relevancy . model . RequestNode [ ] requests = new com . careerbuilder . search . relevancy . model . RequestNode [ 1 ] ; com . careerbuilder . search . relevancy . generation . FacetFieldAdapter [ ] adapters = new com . careerbuilder . search . relevancy . gen...
org . junit . Assert . assertEquals ( 0 , runners . get ( "testField" ) . size ( ) )
findString ( ) { java . lang . String xml = "<toplevel><foo>bar</foo></toplevel>" ; com . braintreegateway . util . NodeWrapper node = com . braintreegateway . util . SimpleNodeWrapper . parse ( xml ) ; "<AssertPlaceHolder>" ; } findString ( java . lang . String ) { com . braintreegateway . util . SimpleNodeWrapper nod...
org . junit . Assert . assertEquals ( "bar" , node . findString ( "foo" ) )
getValue ( ) { mandatorySubject . setValue ( nl . bzk . migratiebrp . voisc . spd . EXPIRED ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertEquals ( nl . bzk . migratiebrp . voisc . spd . EXPIRED , mandatorySubject . getValue ( ) )
testTwoNestedDirectoriesTrue ( ) { try { java . lang . String firstLevelDir = org . apache . flink . testutils . TestFileUtils . randomFileName ( ) ; java . lang . String secondLevelDir = org . apache . flink . testutils . TestFileUtils . randomFileName ( ) ; java . lang . String thirdLevelDir = org . apache . flink . ...
org . junit . Assert . assertEquals ( 4 , splits . length )
testOrFunction ( ) { items . add ( new org . eclipse . smarthome . core . library . types . ArithmeticGroupFunctionTest . TestItem ( "TestItem1" , OpenClosedType . CLOSED ) ) ; items . add ( new org . eclipse . smarthome . core . library . types . ArithmeticGroupFunctionTest . TestItem ( "TestItem2" , org . eclipse . s...
org . junit . Assert . assertEquals ( OpenClosedType . OPEN , state )
testAgencAndId_ExistingAgencyId ( ) { org . onebusaway . gtfs . model . Stop stop = new org . onebusaway . gtfs . model . Stop ( ) ; stop . setId ( new org . onebusaway . gtfs . model . AgencyAndId ( "2" , "456" ) ) ; java . lang . Object value = convert ( stop , "id" , "123" ) ; "<AssertPlaceHolder>" ; } convert ( jav...
org . junit . Assert . assertEquals ( new org . onebusaway . gtfs . model . AgencyAndId ( "2" , "123" ) , value )
shouldParseValue ( ) { de . slackspace . openkeepass . domain . CrsAlgorithm crsAlgorithm = de . slackspace . openkeepass . domain . CrsAlgorithm . parseValue ( 1 ) ; "<AssertPlaceHolder>" ; } parseValue ( int ) { switch ( value ) { case 0 : return de . slackspace . openkeepass . domain . CrsAlgorithm . Null ; case 1 :...
org . junit . Assert . assertEquals ( CrsAlgorithm . ArcFourVariant , crsAlgorithm )
testEdgelessGraphSame ( ) { edu . ucla . sspace . graph . isomorphism . Graph < edu . ucla . sspace . graph . isomorphism . Edge > g1 = new edu . ucla . sspace . graph . isomorphism . SparseUndirectedGraph ( ) ; for ( int i = 0 ; i < 3 ; ++ i ) g1 . add ( i ) ; edu . ucla . sspace . graph . isomorphism . Graph < edu . ...
org . junit . Assert . assertTrue ( isoTest . areIsomorphic ( g1 , g2 ) )
testAllTechniquesSetQuantile ( ) { for ( final org . apache . commons . math4 . stat . descriptive . rank . Percentile . EstimationType e : Percentile . EstimationType . values ( ) ) { reset ( 10 , e ) ; final org . apache . commons . math4 . stat . descriptive . rank . Percentile percentile = getUnivariateStatistic ( ...
org . junit . Assert . assertEquals ( 100 , percentile . getQuantile ( ) , 0 )
testFullPayload ( ) { org . joda . time . DateTime dateTime = new org . joda . time . DateTime ( 2018 , 3 , 17 , 11 , 35 , org . joda . time . DateTimeZone . UTC ) ; com . urbanairship . api . push . model . PushExpiry expiry = com . urbanairship . api . push . model . PushExpiry . newBuilder ( ) . setExpiryTimeStamp (...
org . junit . Assert . assertEquals ( expectedNode , jsonNode )
array_query_projection_with_match_projection ( ) { com . redhat . lightblue . query . Projection p = com . redhat . lightblue . eval . EvalTestContext . projectionFromJson ( "{'field':'field7','match':{'field':'elemf3','op':'>','rvalue':4},'projection':{'field':'*'}}" ) ; com . redhat . lightblue . eval . Projector pro...
org . junit . Assert . assertEquals ( expectedNode . toString ( ) , pdoc . toString ( ) )
test_deleteBy ( ) { java . util . Map templateModel = new java . util . HashMap ( ) ; java . util . Map filePathModel = new java . util . HashMap ( ) ; generator . setTemplateRootDir ( "/not_exist_828282" ) ; cn . org . rapid_framework . generator . Generator result = generator . deleteBy ( templateModel , filePathMode...
org . junit . Assert . assertNotNull ( result )
closesWithoutGet ( ) { java . util . concurrent . atomic . AtomicInteger obj = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; try ( T wrapper = closeableFactory . makeCloseable ( obj , com . facebook . buck . util . CloseableWrapperTest :: closer ) ) { } finally { "<AssertPlaceHolder>" ; } } get ( ) { re...
org . junit . Assert . assertEquals ( 1 , obj . get ( ) )
testComparator1 ( ) { org . apache . cxf . jaxrs . model . OperationResourceInfo ori1 = new org . apache . cxf . jaxrs . model . OperationResourceInfo ( org . apache . cxf . jaxrs . model . OperationResourceInfoTest . TestClass . class . getMethod ( "doIt" , new java . lang . Class [ ] { } ) , new org . apache . cxf . ...
org . junit . Assert . assertEquals ( 0 , result )
getEncounterTypeByUuid_shouldFindObjectGivenValidUuid ( ) { java . lang . String uuid = "02c533ab-b74b-4ee4-b6e5-ffb6d09a0ac8" ; org . openmrs . EncounterType encounterType = org . openmrs . api . context . Context . getEncounterService ( ) . getEncounterTypeByUuid ( uuid ) ; "<AssertPlaceHolder>" ; } getEncounterTypeI...
org . junit . Assert . assertEquals ( 6 , ( ( int ) ( encounterType . getEncounterTypeId ( ) ) ) )
deveRetornarNuloAoPassarCodigoInvalido ( ) { "<AssertPlaceHolder>" ; } valueOfCodigo ( java . lang . String ) { for ( final com . fincatto . documentofiscal . nfe400 . classes . NFOrigemProcesso origemProcesso : com . fincatto . documentofiscal . nfe400 . classes . NFOrigemProcesso . values ( ) ) { if ( origemProcesso ...
org . junit . Assert . assertNull ( com . fincatto . documentofiscal . nfe400 . classes . NFOrigemProcesso . valueOfCodigo ( "" ) )
createExplodedVarSpecFromUriTemplateBuilder ( ) { com . damnhandy . uri . template . impl . VarSpec varSpec = com . damnhandy . uri . template . UriTemplateBuilder . var ( "experiment" , true ) ; "<AssertPlaceHolder>" ; } getVariableName ( ) { if ( ( variableName ) == null ) { return getValue ( ) ; } return variableNam...
org . junit . Assert . assertEquals ( "experiment" , varSpec . getVariableName ( ) )
menuShouldHaveItems ( ) { final java . util . List < lcmc . common . ui . utils . UpdatableItem > items = cloneMenu . getPulldownMenu ( cloneInfoStub ) ; verify ( menuItemStub , times ( 3 ) ) . predicate ( ( ( lcmc . common . domain . Predicate ) ( anyObject ( ) ) ) ) ; verify ( menuItemStub , times ( 4 ) ) . visiblePr...
org . junit . Assert . assertEquals ( 15 , items . size ( ) )
testInvokeVarargs12 ( ) { javax . el . BeanELResolver resolver = new javax . el . BeanELResolver ( ) ; javax . el . ELContext context = new javax . el . StandardELContext ( javax . el . ELManager . getExpressionFactory ( ) ) ; java . lang . Object result = resolver . invoke ( context , new javax . el . TesterBean ( jav...
org . junit . Assert . assertEquals ( javax . el . TestBeanELResolver . BEAN_NAME , result )
testNewSetAndGrow ( ) { org . graalvm . compiler . graph . test . NodeMapTest . TestNode newNode = graph . add ( new org . graalvm . compiler . graph . test . NodeMapTest . TestNode ( ) ) ; map . setAndGrow ( newNode , 1 ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( ( ( java . lang . Integer ) ( 1 ) ) , map . get ( newNode ) )
testToString ( ) { java . lang . String message = "message" ; java . lang . Throwable throwable = new java . lang . Throwable ( ) ; com . liferay . petra . process . local . LocalProcessLog localProcessLog = new com . liferay . petra . process . local . LocalProcessLog ( ProcessLog . Level . DEBUG , message , throwable...
org . junit . Assert . assertEquals ( localProcessLog . toString ( ) , sb . toString ( ) )
testCompareZonderActie ( ) { final java . time . ZonedDateTime datumTijdAttribuut1 = java . time . LocalDate . of ( 1900 , 10 , 10 ) . atStartOfDay ( DatumUtil . BRP_ZONE_ID ) ; final java . time . ZonedDateTime datumTijdAttribuut2 = java . time . LocalDate . of ( 2000 , 10 , 10 ) . atStartOfDay ( DatumUtil . BRP_ZONE_...
org . junit . Assert . assertEquals ( 1 , compare )
whenReadingInstance_itShouldReadCorrectNuOfType3Vehicles ( ) { jsprit . core . problem . VehicleRoutingProblem . Builder vrpBuilder = VehicleRoutingProblem . Builder . newInstance ( ) ; new jsprit . instance . reader . VrphGoldenReader ( vrpBuilder , jsprit . instance . reader . VrphGoldenReader . VrphType . HVRPD ) . ...
org . junit . Assert . assertEquals ( 4 , nuOfType1Vehicles )
testInt64 ( ) { @ org . jetbrains . annotations . NotNull net . openhft . chronicle . wire . Wire wire = createWire ( ) ; long expected = 1234567890123456789L ; wire . write ( ( ) -> "VALUE" ) . int64 ( expected ) ; expectWithSnakeYaml ( "{VALUE=1234567890123456789}" , wire ) ; "<AssertPlaceHolder>" ; } read ( java . l...
org . junit . Assert . assertEquals ( expected , wire . read ( ( ) -> "VALUE" ) . int64 ( ) )
deveObterUFComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . cadastro . NFRetornoConsultaCadastroDados retornoConsultaCadastroDados = new com . fincatto . documentofiscal . nfe310 . classes . cadastro . NFRetornoConsultaCadastroDados ( ) ; retornoConsultaCadastroDados . setUf ( DFUnidadeFe...
org . junit . Assert . assertEquals ( DFUnidadeFederativa . SC , retornoConsultaCadastroDados . getUf ( ) )
testTokens_simple ( ) { java . util . List < org . apache . ambari . server . api . predicate . Token > listTokens = new java . util . ArrayList ( ) ; listTokens . add ( new org . apache . ambari . server . api . predicate . Token ( Token . TYPE . RELATIONAL_OPERATOR , "=" ) ) ; listTokens . add ( new org . apache . am...
org . junit . Assert . assertArrayEquals ( listTokens . toArray ( new org . apache . ambari . server . api . predicate . Token [ listTokens . size ( ) ] ) , tokens )
testExecute_WithSecurityGroupSFCIdSetToNull_ExpectUpdate ( ) { org . osc . core . broker . service . tasks . conformance . openstack . sfc . UpdateServiceFunctionChainTask updateTask = this . task . create ( this . sg , this . networkElementList ) ; this . sg . setNetworkElementId ( null ) ; org . mockito . Mockito . w...
org . junit . Assert . assertEquals ( this . sg . getNetworkElementId ( ) , "UPDATED_SFC_ID" )
roundTripWriteAndRead ( ) { java . util . List < java . lang . String > strings = java . util . Arrays . asList ( "" , "" , "<sp><sp>" , "" , "န်မာဘာသာ" , "<sp><sp><sp><sp><sp>" , "123<sp><sp>" , "032<sp><sp><sp>" , "This<sp>is<sp><sp>Mixed<sp><sp>" , "<sp><sp><sp>latin<sp><sp><sp><sp><sp><sp><sp><sp><sp><sp>" , "<sp><...
org . junit . Assert . assertEquals ( noWhitespace ( str ) , noWhitespace ( text ) )
testNormalEnum ( ) { int port = com . alibaba . dubbo . common . utils . NetUtils . getAvailablePort ( ) ; com . alibaba . dubbo . common . URL serviceurl = com . alibaba . dubbo . common . URL . valueOf ( ( ( ( "dubbo://127.0.0.1:" + port ) + "/test?timeout=" ) + ( Integer . MAX_VALUE ) ) ) ; com . alibaba . dubbo . r...
org . junit . Assert . assertEquals ( Type . High , type )