input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testGetters ( ) { org . eurekastreams . server . persistence . mappers . requests . opensocial . UserSetDomainEntitiesRequest sut = new org . eurekastreams . server . persistence . mappers . requests . opensocial . UserSetDomainEntitiesRequest ( ids ) ; "<AssertPlaceHolder>" ; } getUserIds ( ) { return this . userIds ;...
org . junit . Assert . assertEquals ( ids , sut . getUserIds ( ) )
testPKForObjectFailureForCompound ( ) { createOneCompoundPK ( ) ; java . util . List < ? > objects = context . performQuery ( new org . apache . cayenne . query . SelectQuery ( org . apache . cayenne . testdo . compound . CompoundPkTestEntity . class ) ) ; "<AssertPlaceHolder>" ; org . apache . cayenne . DataObject obj...
org . junit . Assert . assertEquals ( 1 , objects . size ( ) )
sliding_A$int ( ) { com . m3 . scalaflavor4j . Nil < java . lang . String > nil = com . m3 . scalaflavor4j . Nil . < java . lang . String > apply ( ) ; java . lang . Integer size = 3 ; com . m3 . scalaflavor4j . Seq < com . m3 . scalaflavor4j . Seq < java . lang . String > > actual = nil . sliding ( size ) ; "<AssertPl...
org . junit . Assert . assertThat ( actual . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testGenerateIndexedPropertyNonPBO ( ) { java . lang . IndexOutOfBoundsException ioobe = new java . lang . IndexOutOfBoundsException ( "test<sp>exception" ) ; try { new org . kuali . rice . kns . web . struts . form . pojo . PojoPropertyUtilsBean ( ) . generateIndexedProperty ( new org . kuali . rice . kns . web . strut...
org . junit . Assert . assertEquals ( ioobe , e )
deveObterTotalComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfo notaInfo = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfo ( ) ; final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoTotal total = com . fincatto . documen...
org . junit . Assert . assertEquals ( total , notaInfo . getTotal ( ) )
testAddLargeBlocks ( ) { final java . util . ArrayList < org . eclipse . jgit . revwalk . RevCommit > lst = new java . util . ArrayList ( ) ; for ( int i = 0 ; i < ( 3 * ( BlockRevQueue . Block . BLOCK_SIZE ) ) ; i ++ ) { final org . eclipse . jgit . revwalk . RevCommit c = commit ( ) ; lst . add ( c ) ; q . add ( c ) ...
org . junit . Assert . assertSame ( lst . get ( i ) , q . next ( ) )
testReplaceThenDeleteMiddleIndex ( ) { org . antlr . tool . Grammar g = new org . antlr . tool . Grammar ( ( "lexer<sp>grammar<sp>t;\n" + ( ( "A<sp>:<sp>\'a\';\n" + "B<sp>:<sp>\'b\';\n" ) + "C<sp>:<sp>\'c\';\n" ) ) ) ; org . antlr . runtime . CharStream input = new org . antlr . runtime . ANTLRStringStream ( "abc" ) ; ...
org . junit . Assert . assertEquals ( expecting , result )
testInt ( ) { int value = 1 ; org . apache . hadoop . conf . Configuration configuration = new org . apache . hadoop . conf . Configuration ( ) ; configuration . setInt ( "value" , value ) ; "<AssertPlaceHolder>" ; } getInt ( org . apache . hadoop . conf . Configuration , java . lang . String ) { int value = configurat...
org . junit . Assert . assertEquals ( value , configuration . getInt ( "value" , 0 ) )
shouldPassthroughValidStatements ( ) { final org . apache . jena . rdf . model . Model m = org . apache . jena . rdf . model . ModelFactory . createDefaultModel ( ) ; final org . apache . jena . rdf . model . Statement x = m . createStatement ( testSubjects . toDomain ( "/" ) , org . apache . jena . rdf . model . Resou...
org . junit . Assert . assertEquals ( x , statement )
testSetSeriesToolTipGenerator ( ) { org . jfree . chart . plot . XYPlot plot = ( ( org . jfree . chart . plot . XYPlot ) ( this . chart . getPlot ( ) ) ) ; org . jfree . chart . renderer . xy . XYItemRenderer renderer = plot . getRenderer ( ) ; org . jfree . chart . labels . StandardXYToolTipGenerator tt = new org . jf...
org . junit . Assert . assertTrue ( ( tt2 == tt ) )
testOnPortUpdatePreConnTypeError ( ) { java . util . ArrayList < java . lang . String > attrList = new java . util . ArrayList < java . lang . String > ( ) ; org . o3project . odenos . core . component . network . topology . Port prev = new org . o3project . odenos . core . component . network . topology . Port ( "0" ,...
org . junit . Assert . assertThat ( target . onPortUpdatePre ( org . o3project . odenos . component . aggregator . AggregatorTest . ORIGINAL_NW_ID , prev , curr , attrList ) , org . hamcrest . CoreMatchers . is ( false ) )
normalDrawTest ( ) { byte [ ] expected = "1<sp>0<sp>0<sp>1<sp>7.5<sp>0<sp>cm\n0<sp>0<sp>0<sp>rg\nf\nh\n" . getBytes ( StandardCharsets . UTF_8 ) ; com . itextpdf . svg . renderers . ISvgNodeRenderer nodeRenderer = new com . itextpdf . svg . renderers . impl . AbstractSvgNodeRenderer ( ) { @ com . itextpdf . svg . rende...
org . junit . Assert . assertArrayEquals ( expected , actual )
test_zero_unsigned_long ( ) { int result = server . bounce_unsigned_long ( 0 ) ; "<AssertPlaceHolder>" ; } bounce_unsigned_long ( int ) { return x ; }
org . junit . Assert . assertEquals ( 0 , result )
testSerialization ( ) { org . jfree . chart . axis . PeriodAxisLabelInfo info1 = new org . jfree . chart . axis . PeriodAxisLabelInfo ( org . jfree . data . time . Day . class , new java . text . SimpleDateFormat ( "d" ) ) ; org . jfree . chart . axis . PeriodAxisLabelInfo info2 = ( ( org . jfree . chart . axis . Perio...
org . junit . Assert . assertEquals ( info1 , info2 )
testXor1 ( ) { org . nd4j . linalg . api . ndarray . INDArray x = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 0 , 0 , 1 , 0 , 0 } ) ; org . nd4j . linalg . api . ndarray . INDArray y = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 0 , 0 , 1 , 1 , 0 } ) ; org . nd4j . linalg . api...
org . junit . Assert . assertEquals ( exp , z )
refinementIntegerNotEquals ( ) { generateDrugHierarchy ( ) ; final com . b2international . index . query . Expression actual = eval ( java . lang . String . format ( "<%s:<sp>%s<sp>!=<sp>#500" , com . b2international . snowowl . snomed . core . ecl . SnomedEclEvaluationRequestTest . DRUG_ROOT , com . b2international . ...
org . junit . Assert . assertEquals ( expected , actual )
testIsCertificateIssuerValidPositiveCvcaLink ( ) { new mockit . NonStrictExpectations ( ) { { certificate . getCertificateHolderAuthorizationTemplate ( ) ; result = isCvcaChat ; issuingCertificate . getCertificateHolderAuthorizationTemplate ( ) ; result = isCvcaChat ; } } ; "<AssertPlaceHolder>" ; } isCertificateIssuer...
org . junit . Assert . assertTrue ( de . persosim . simulator . protocols . ta . AbstractTaProtocol . isCertificateIssuerValid ( issuingCertificate , issuingCertificate ) )
test_minusWeeks_noChange ( ) { java . time . LocalDateTime t = TEST_2007_07_15_12_30_40_987654321 . minusWeeks ( 0 ) ; "<AssertPlaceHolder>" ; } minusWeeks ( long ) { return weeksToSubtract == ( Long . MIN_VALUE ) ? plusWeeks ( Long . MAX_VALUE ) . plusWeeks ( 1 ) : plusWeeks ( ( - weeksToSubtract ) ) ; }
org . junit . Assert . assertSame ( t , TEST_2007_07_15_12_30_40_987654321 )
inequalityWithNullName ( ) { com . fiveamsolutions . plc . jaas . UserPrincipal testUserPrincipal1 = createTestUserPrincipal ( com . fiveamsolutions . plc . jaas . UserPrincipalTest . TEST_ID , com . fiveamsolutions . plc . jaas . UserPrincipalTest . TEST_USERNAME ) ; com . fiveamsolutions . plc . jaas . UserPrincipal ...
org . junit . Assert . assertFalse ( testUserPrincipal1 . equals ( testUserPrincipal2 ) )
testGetWithPresentValue ( ) { int value = com . annimon . stream . OptionalInt . of ( 10 ) . getAsInt ( ) ; "<AssertPlaceHolder>" ; } getAsInt ( ) { int v = value ; value *= 2 ; return v ; }
org . junit . Assert . assertEquals ( 10 , value )
testIsFounderFalse ( ) { de . charite . compbio . jannovar . pedigree . Person father = new de . charite . compbio . jannovar . pedigree . Person ( "father" , null , null , Sex . MALE , Disease . AFFECTED ) ; de . charite . compbio . jannovar . pedigree . Person index = new de . charite . compbio . jannovar . pedigree ...
org . junit . Assert . assertFalse ( index . isFounder ( ) )
testLoopValue ( ) { com . ewcms . publication . freemarker . directive . out . article . RelationsDirectiveOut out = new com . ewcms . publication . freemarker . directive . out . article . RelationsDirectiveOut ( ) ; java . util . List < com . ewcms . content . document . model . Article > list = ( ( java . util . Lis...
org . junit . Assert . assertTrue ( ( ( list . size ( ) ) == 2 ) )
testConnect_WithMock ( ) { com . sumzerotrading . interactive . brokers . client . InteractiveBrokersClientInterface mockClient = mock ( com . sumzerotrading . interactive . brokers . client . InteractiveBrokersClientInterface . class ) ; java . lang . String host = "myHost" ; int port = 9999 ; int clientId = 123 ; com...
org . junit . Assert . assertEquals ( mockClient , com . sumzerotrading . interactive . brokers . client . InteractiveBrokersClient . getInstance ( host , port , clientId ) )
testGetDeviceFlowRegistry ( ) { final org . opendaylight . openflowplugin . api . openflow . registry . flow . DeviceFlowRegistry deviceFlowRegistry = deviceContext . getDeviceFlowRegistry ( ) ; "<AssertPlaceHolder>" ; } getDeviceFlowRegistry ( ) { return deviceFlowRegistry ; }
org . junit . Assert . assertNotNull ( deviceFlowRegistry )
testQueueCanSendAndRecieve ( ) { java . util . function . Supplier < java . lang . String > supplier = resource . createSupplier ( uk . gov . dstl . baleen . resources . SharedMemoryQueueResourceTest . TEST_QUEUE ) ; java . util . function . Consumer < java . lang . String > consumer = resource . createConsumer ( uk . ...
org . junit . Assert . assertEquals ( uk . gov . dstl . baleen . resources . SharedMemoryQueueResourceTest . MESSAGE , supplier . get ( ) )
testGetHomepageUrl ( ) { doReturn ( consoleConfig ) . when ( spyAppConfigProperties ) . getConsoleConfig ( ) ; when ( consoleConfig . getHomePageUrl ( ) ) . thenReturn ( "http://www.pentaho.com" ) ; "<AssertPlaceHolder>" ; } getHomepageUrl ( ) { java . lang . String homepageUrl = getConsoleConfig ( ) . getHomePageUrl (...
org . junit . Assert . assertEquals ( "http://www.pentaho.com" , spyAppConfigProperties . getHomepageUrl ( ) )
should_pauseJobs_of_tenant_call_schedulerExecutor_rethrow_exception ( ) { final org . bonitasoft . engine . scheduler . exception . SSchedulerException theException = new org . bonitasoft . engine . scheduler . exception . SSchedulerException ( "My<sp>exception" ) ; doThrow ( theException ) . when ( schedulerExecutor )...
org . junit . Assert . assertEquals ( theException , e )
testAutoMapBlobToSimple ( ) { java . sql . Blob blob = org . easymock . EasyMock . createMock ( java . sql . Blob . class ) ; replay ( blob ) ; java . lang . Object bytes = com . github . davidmoten . rx . jdbc . Util . autoMap ( blob , com . github . davidmoten . rx . jdbc . UtilTest . Simple . class ) ; "<AssertPlace...
org . junit . Assert . assertEquals ( bytes , blob )
testGetEndSequenceNumber ( ) { org . openscience . cdk . interfaces . IPDBStructure structure = org . openscience . cdk . interfaces . AbstractPDBStructureTest . getBuilder ( ) . newInstance ( org . openscience . cdk . interfaces . IPDBStructure . class ) ; "<AssertPlaceHolder>" ; } getEndSequenceNumber ( ) { return en...
org . junit . Assert . assertNull ( structure . getEndSequenceNumber ( ) )
testGetFullCommandLine ( ) { System . out . println ( "getFullCommandLine" ) ; org . netbeans . modules . gradle . api . execute . GradleCommandLine instance = new org . netbeans . modules . gradle . api . execute . GradleCommandLine ( "--offline" , "--no-daemon" ) ; java . util . List < java . lang . String > expResul...
org . junit . Assert . assertEquals ( expResult , result )
testDragEmd ( ) { com . ait . lienzo . client . core . event . NodeDragEndHandler handler = mock ( com . ait . lienzo . client . core . event . NodeDragEndHandler . class ) ; final org . kie . workbench . common . stunner . lienzo . toolbox . items . impl . ButtonItemImpl cascade = tested . onDragEnd ( handler ) ; "<As...
org . junit . Assert . assertEquals ( tested , cascade )
testFindByMeasuringInstructionAndTypeDisplayName ( ) { java . lang . String measuringInstruction1 = "instruction1" ; java . lang . String measuringInstruction2 = "instruction2" ; java . lang . String typeDisplayName1 = "alpha" ; java . lang . String typeDisplayName2 = "bravo" ; org . oscarehr . common . model . Measure...
org . junit . Assert . assertTrue ( true )
RdfXmlSource ( ) { com . mysema . rdfbean . model . IdSequence sequence = new com . mysema . rdfbean . model . MemoryIdSequence ( ) ; org . h2 . jdbcx . JdbcConnectionPool ds = org . h2 . jdbcx . JdbcConnectionPool . create ( "jdbc:h2:target/mixed1" , "sa" , "" ) ; ds . setMaxConnections ( 30 ) ; com . mysema . rdfbean...
org . junit . Assert . assertEquals ( count , conn . find ( null , null , null , null , false ) . size ( ) )
testDeleteExistingEntryReferralJNDIIgnore ( ) { org . apache . directory . server . core . api . CoreSession session = getService ( ) . getAdminSession ( ) ; MNNCtx . addToEnvironment ( Context . REFERRAL , "ignore" ) ; MNNCtx . destroySubcontext ( "ou=Roles" ) ; org . apache . directory . api . ldap . model . name . D...
org . junit . Assert . assertTrue ( true )
parseNullQualifier ( ) { java . util . Map < java . lang . String , java . lang . Object > result = parser . parse ( null ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { java . lang . String bindingValue = getValue ( ) ; return ( bindingValue == null ) || ( ( bindingValue . length ( ) ) == 0 ) ; }
org . junit . Assert . assertThat ( result . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testDisassociatePolicyGroupFromDomain_unknownErrorInRemove_assertException ( ) { boolean exceptionOccured = false ; final javax . persistence . EntityManager mgr = mock ( javax . persistence . EntityManager . class ) ; doThrow ( new java . lang . RuntimeException ( "Just<sp>Passing<sp>Through" ) ) . when ( mgr ) . remo...
org . junit . Assert . assertTrue ( exceptionOccured )
canCreateFileAndThenUpdateIt ( ) { com . microsoft . windowsazure . services . media . models . AssetInfo asset = com . microsoft . windowsazure . services . media . AssetFileIntegrationTest . createTestAsset ( "createAndUpdate" ) ; com . microsoft . windowsazure . services . media . models . AccessPolicyInfo policy = ...
org . junit . Assert . assertEquals ( "application/octet-stream" , fromServer . getMimeType ( ) )
testSerialize ( ) { byte [ ] result = serializer . serialize ( ) ; "<AssertPlaceHolder>" ; } serialize ( ) { de . rub . nds . tlsattacker . core . protocol . serializer . ServerHelloSerializer serializer = new de . rub . nds . tlsattacker . core . protocol . serializer . ServerHelloSerializer ( helloMessage , de . rub ...
org . junit . Assert . assertArrayEquals ( result , new byte [ ] { 0 , 1 , 2 , 3 } )
testTwoActiveProfilesWithOneRequiredProfile ( ) { java . util . List < org . apache . maven . model . Profile > profiles = java . util . Arrays . asList ( createProfile ( "profile-1" ) , createProfile ( "profile-2" ) ) ; when ( project . getActiveProfiles ( ) ) . thenReturn ( profiles ) ; rule . setProfiles ( "profile-...
org . junit . Assert . assertTrue ( true )
prefix2 ( ) { org . apache . jena . tdb2 . store . Dataset ds = dataset ( ) ; org . apache . jena . rdf . model . Model m = ds . getDefaultModel ( ) ; org . apache . jena . tdb2 . store . TestDatasetTDB . load1 ( m ) ; org . apache . jena . rdf . model . Model m2 = ds . getNamedModel ( "http://example/graph/" ) ; java ...
org . junit . Assert . assertEquals ( x , ":x" )
testConvertFromTimestamp ( ) { java . util . TimeZone defaultZone = java . util . TimeZone . getDefault ( ) ; try { java . lang . String s = "2017-06-12<sp>23:12:56.34" ; org . apache . hadoop . hive . common . type . TimestampTZ tstz1 = org . apache . hadoop . hive . common . type . TimestampTZUtil . convert ( org . a...
org . junit . Assert . assertTrue ( ( ( tstz1 . compareTo ( tstz2 ) ) < 0 ) )
testCustomAnnotationOptionalFieldResourceInjection ( ) { org . springframework . ide . eclipse . beans . core . internal . model . BeansConfig config = new org . springframework . ide . eclipse . beans . core . internal . model . BeansConfig ( beansProject , "src/org/springframework/beans/factory/annotation/testCustomA...
org . junit . Assert . assertEquals ( 0 , references . size ( ) )
testDefaultRecordDelimiters ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; org . apache . hadoop . fs . FileSystem localFs = org . apache . hadoop . fs . FileSystem . getLocal ( conf ) ; localFs . delete ( org . apache . hadoop . mapreduce . lib . input ...
org . junit . Assert . assertEquals ( expected , readOutputFile ( conf ) )
testGetText_2 ( ) { net . certware . argument . eur . navigator . LabelProvider fixture = new net . certware . argument . eur . navigator . LabelProvider ( ) ; fixture . closedImage = new org . eclipse . swt . graphics . Image ( new org . eclipse . swt . widgets . Display ( ) , 1 , 1 ) ; fixture . openImage = new org ....
org . junit . Assert . assertNotNull ( result )
testConvertZ ( ) { org . apache . hadoop . mapreduce . lib . db . TextSplitter splitter = new org . apache . hadoop . mapreduce . lib . db . TextSplitter ( ) ; java . lang . String out = splitter . bigDecimalToString ( splitter . stringToBigDecimal ( "Z" ) ) ; "<AssertPlaceHolder>" ; } stringToBigDecimal ( java . lang ...
org . junit . Assert . assertEquals ( "Z" , out )
testUpdateRows ( ) { Sheet sheet = smartsheet . sheetResources ( ) . createSheet ( createSheetObject ( ) ) ; PaginationParameters parameters = new PaginationParameters . PaginationParametersBuilder ( ) . setIncludeAll ( true ) . build ( ) ; PagedResult < Column > wrapper = smartsheet . sheetResources ( ) . columnResour...
org . junit . Assert . assertNotNull ( updatedRows )
equalsReturnsTrueForSameDestination ( ) { io . searchbox . indices . Rollover indexRollover1 = new io . searchbox . indices . Rollover . Builder ( "twitter" ) . conditions ( rolloverConditions ) . build ( ) ; io . searchbox . indices . Rollover indexRollover2 = new io . searchbox . indices . Rollover . Builder ( "twitt...
org . junit . Assert . assertEquals ( indexRollover1 , indexRollover2 )
testClassInInterfaceIsStatic ( ) { try { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "interface<sp>Foo<sp>{" ) ; _builder . newLine ( ) ; _builder . append ( "\t" ) ; _builder . append ( "class<sp>C<sp>{}" ) ; _builder . ...
org . junit . Assert . assertTrue ( c . isStatic ( ) )
onBootEvent_close ( org . apache . servicecomb . core . definition . MicroserviceMeta , org . apache . servicecomb . core . definition . OperationMeta , org . apache . servicecomb . core . definition . OperationMeta , org . apache . servicecomb . core . executor . GroupExecutor ) { java . util . concurrent . atomic . A...
org . junit . Assert . assertEquals ( 2 , count . get ( ) )
testPopcharGetValueAt ( ) { int index = 0 ; for ( org . drugis . addis . entities . Variable v : d_popcharStudy . getVariables ( org . drugis . addis . entities . PopulationCharacteristic . class ) ) { "<AssertPlaceHolder>" ; org . drugis . addis . entities . WhenTaken wt = d_popcharStudy . defaultMeasurementMoment ( )...
org . junit . Assert . assertEquals ( v . getName ( ) , d_popcharTablemodel . getValueAt ( index , 0 ) )
testToUnsigned24bitsInteger ( ) { int i = 15670506 ; byte a1 = ( ( byte ) ( 239 ) ) ; short a2 = ( ( short ) ( 7402 ) ) ; "<AssertPlaceHolder>" ; } toUnsigned24bitsInteger ( byte , short ) { int x = com . firefly . utils . codec . NumberProcessUtils . toUnsignedInteger ( highOrder ) ; x <<= 16 ; x += com . firefly . ut...
org . junit . Assert . assertThat ( com . firefly . utils . codec . NumberProcessUtils . toUnsigned24bitsInteger ( a1 , a2 ) , org . hamcrest . Matchers . is ( i ) )
validate_shouldPassIfTheConceptWithADuplicateNameIsRetired ( ) { org . openmrs . api . context . Context . setLocale ( new java . util . Locale ( "en" , "GB" ) ) ; org . openmrs . Concept concept = cd4Count ; concept . setRetired ( true ) ; conceptService . saveConcept ( concept ) ; java . lang . String duplicateName =...
org . junit . Assert . assertFalse ( errors . hasErrors ( ) )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . document . library . kernel . model . DLFileShortcut missingDLFileShortcut = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { retur...
org . junit . Assert . assertNull ( missingDLFileShortcut )
addListenerFirst_bound_singleEventOnSetValue ( ) { binder . addValueChangeListener ( this :: statusChanged ) ; binder . forField ( nameField ) . bind ( Person :: getFirstName , Person :: setFirstName ) ; binder . forField ( ageField ) . withConverter ( new com . vaadin . flow . data . converter . StringToIntegerConvert...
org . junit . Assert . assertNull ( event . get ( ) )
testInitDynAnyFromDynAny ( ) { java . lang . String msg ; int [ ] type ; org . omg . CORBA . Any any = null ; org . omg . CORBA . TypeCode tc = null ; org . omg . DynamicAny . DynSequence dynAny = null ; org . omg . DynamicAny . DynSequence dynAny2 = null ; tc = org . jacorb . test . UnboundedDataHelper . type ( ) ; dy...
org . junit . Assert . assertTrue ( msg , dynAny . equal ( dynAny2 ) )
testTwoComponents ( ) { edu . ucla . sspace . graph . Graph < edu . ucla . sspace . graph . DirectedEdge > g = new edu . ucla . sspace . graph . SparseDirectedGraph ( ) ; for ( int i = 1 ; i < 9 ; i ++ ) { g . add ( i ) ; } g . add ( new edu . ucla . sspace . graph . SimpleDirectedEdge ( 1 , 2 ) ) ; g . add ( new edu ....
org . junit . Assert . assertEquals ( 2 , numSubgraphs )
testSaveUserWithEmptyEmail ( ) { loginSysAdmin ( ) ; org . thingsboard . server . common . data . Tenant tenant = new org . thingsboard . server . common . data . Tenant ( ) ; tenant . setTitle ( "My<sp>tenant" ) ; org . thingsboard . server . common . data . Tenant savedTenant = doPost ( "/api/tenant" , tenant , org ....
org . junit . Assert . assertNotNull ( savedTenant )
itShouldTryToLoadSaidClassFromClassLoader ( ) { java . util . Set < java . lang . String > loaded = new java . util . HashSet ( ) ; jdk . tools . jaotc . collect . ClassSearch target = new jdk . tools . jaotc . collect . ClassSearch ( ) ; target . addProvider ( new jdk . tools . jaotc . collect . SourceProvider ( ) { @...
org . junit . Assert . assertEquals ( jdk . tools . jaotc . test . collect . ClassSearchTest . list ( new jdk . tools . jaotc . LoadedClass ( "foo.Bar" , null ) ) , search )
test3 ( ) { com . dianping . puma . alarm . core . model . data . PushTimeDelayAlarmData data = new com . dianping . puma . alarm . core . model . data . PushTimeDelayAlarmData ( ) ; data . setPushTimeDelayInSecond ( 1000 ) ; com . dianping . puma . alarm . core . model . benchmark . PushTimeDelayAlarmBenchmark benchma...
org . junit . Assert . assertFalse ( state . isAlarm ( ) )
shouldReturnResultsWithScanAndScrollForSpecifiedFieldsForSearchCriteria ( ) { java . util . List < org . springframework . data . elasticsearch . core . IndexQuery > entities = org . springframework . data . elasticsearch . core . ElasticsearchTemplateTests . createSampleEntitiesWithMessage ( "Test<sp>message" , 30 ) ;...
org . junit . Assert . assertThat ( sampleEntities . size ( ) , is ( equalTo ( 30 ) ) )
testSendDataRequestOptionsEnumValues ( ) { for ( com . digi . xbee . api . models . SendDataRequestOptions option : options ) "<AssertPlaceHolder>" ; } getID ( ) { return id ; }
org . junit . Assert . assertTrue ( ( ( option . getID ( ) ) >= 0 ) )
testSetFilePath ( ) { java . lang . String filePath = "file.tar" ; org . owasp . dependencycheck . dependency . Dependency instance = new org . owasp . dependencycheck . dependency . Dependency ( ) ; instance . setFilePath ( filePath ) ; "<AssertPlaceHolder>" ; } getFilePath ( ) { return filePath ; }
org . junit . Assert . assertEquals ( filePath , instance . getFilePath ( ) )
testSetMetadataFromMap_Null ( ) { initializeExpectedInstance ( 2 ) ; expect ( compute . getOptions ( ) ) . andReturn ( mockOptions ) ; java . util . Map < java . lang . String , java . lang . String > metadataMap = com . google . common . collect . ImmutableMap . of ( "k" , "v" ) ; com . google . cloud . compute . depr...
org . junit . Assert . assertNull ( instance . setMetadata ( metadataMap ) )
testToJson_doesNotContainOtherPropertiesByDefault ( ) { org . eclipse . rap . rwt . template . TextCell cell = new org . eclipse . rap . rwt . template . TextCell ( template ) ; org . eclipse . rap . json . JsonObject json = cell . toJson ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return values . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , json . size ( ) )
accumulatesFunctionNTimes ( ) { com . jnape . palatable . lambda . functions . Fn1 < java . lang . Integer , java . lang . Integer > inc = ( x ) -> x + 1 ; "<AssertPlaceHolder>" ; } times ( java . lang . Integer , java . util . function . Function ) { return com . jnape . palatable . lambda . functions . builtin . fn3 ...
org . junit . Assert . assertEquals ( ( ( java . lang . Integer ) ( 3 ) ) , com . jnape . palatable . lambda . functions . builtin . fn3 . Times . times ( 3 , inc ) . apply ( 0 ) )
testIsMyTypeVersionAbsent ( ) { document . setRootElement ( new org . jdom2 . Element ( "rss" ) ) ; "<AssertPlaceHolder>" ; } isMyType ( org . jdom2 . Document ) { boolean ok = false ; final org . jdom2 . Element rssRoot = document . getRootElement ( ) ; final org . jdom2 . Namespace defaultNS = rssRoot . getNamespace ...
org . junit . Assert . assertTrue ( parser . isMyType ( document ) )
testTransformJSONtoJava ( ) { org . switchyard . quickstarts . transform . json . OrderAck orderAck = submitOrder . inputType ( org . switchyard . quickstarts . transform . json . JsonTransformationTest . FROM_TYPE ) . sendInOut ( _testKit . readResourceString ( ORDER_JSON ) ) . getContent ( org . switchyard . quicksta...
org . junit . Assert . assertTrue ( orderAck . isAccepted ( ) )
testGetOrCreateTag_ReturnZeroList ( ) { reset ( mockTagMapper ) ; java . util . List < com . onboard . domain . model . Tag > list = new java . util . ArrayList < com . onboard . domain . model . Tag > ( ) ; when ( mockTagMapper . selectByExample ( any ( com . onboard . domain . mapper . model . TagExample . class ) ) ...
org . junit . Assert . assertEquals ( sampleTag , ret )
testGenericPushBoolean ( ) { com . eclipsesource . v8 . V8Array array = new com . eclipsesource . v8 . V8Array ( v8 ) ; array . push ( new java . lang . Boolean ( true ) ) ; "<AssertPlaceHolder>" ; array . close ( ) ; } get ( byte [ ] ) { v8 . checkThread ( ) ; checkReleased ( ) ; byteBuffer . get ( dst ) ; return this...
org . junit . Assert . assertTrue ( ( ( java . lang . Boolean ) ( array . get ( 0 ) ) ) )
testCreateConnectionAsUnknwonUser ( ) { org . apache . qpid . jms . JmsConnectionFactory factory = new org . apache . qpid . jms . JmsConnectionFactory ( getBrokerAmqpConnectionURI ( ) ) ; factory . setUsername ( "unknown" ) ; factory . setPassword ( "unknown" ) ; connection = factory . createConnection ( ) ; "<AssertP...
org . junit . Assert . assertNotNull ( connection )
testToString ( ) { java . lang . String expected = "Element<sp>[1/0]" ; "<AssertPlaceHolder>" ; } toString ( ) { return fName ; }
org . junit . Assert . assertEquals ( expected , fixture . toString ( ) )
testEmpty ( ) { com . sap . hcp . cf . logback . converter . ContextPropsConverter cpc = new com . sap . hcp . cf . logback . converter . ContextPropsConverter ( ) ; org . slf4j . MDC . clear ( ) ; cpc . start ( ) ; java . util . Map < java . lang . String , java . lang . Object > actMap = mapFrom ( cpc . convert ( mak...
org . junit . Assert . assertThat ( actMap , org . hamcrest . core . Is . is ( mdcMap ( ) ) )
testReverseOrder ( ) { int [ ] expected = new int [ ] { 7 , 6 , 0 , 2 , 3 , 5 , 4 , 1 } ; for ( int i = 0 ; i < ( expected . length ) ; i ++ ) { "<AssertPlaceHolder>" ; } } idToSortPosition ( int , boolean ) { return sensitive ? sortPositionPerId [ id ] : sortPositionPerIdInsensitive [ id ] ; }
org . junit . Assert . assertEquals ( expected [ i ] , t . idToSortPosition ( i , true ) )
testDirectSingletonModification ( ) { net . amygdalum . xrayinterface . examples . singleton . TheOneAndOnly instance = net . amygdalum . xrayinterface . examples . singleton . TheOneAndOnly . getInstance ( ) ; net . amygdalum . xrayinterface . XRayInterface . xray ( instance ) . to ( net . amygdalum . xrayinterface . ...
org . junit . Assert . assertThat ( instance . isUnique ( ) , org . hamcrest . CoreMatchers . is ( false ) )
testBRAL0212Geldig ( ) { nl . bzk . brp . model . bericht . kern . PersoonGeslachtsnaamcomponentStandaardGroepBericht groep = new nl . bzk . brp . model . bericht . kern . PersoonGeslachtsnaamcomponentStandaardGroepBericht ( ) ; groep . setScheidingsteken ( new nl . bzk . brp . model . algemeen . attribuuttype . kern ....
org . junit . Assert . assertEquals ( 0 , overtredingen . size ( ) )
testRegionGet ( ) { int testSize = 100000 ; com . oberasoftware . jasdb . core . caching . LRURegion < com . oberasoftware . jasdb . core . caching . LRURegionTest . MockCacheEntry < java . lang . Long > > region = new com . oberasoftware . jasdb . core . caching . LRURegion ( "region" ) ; for ( int i = 0 ; i < testSiz...
org . junit . Assert . assertThat ( entry . getValue ( ) , org . hamcrest . core . Is . is ( ( ( ( long ) ( i ) ) * 2 ) ) )
testLineEndings ( ) { java . lang . String rawCs1 = org . apache . commons . io . IOUtils . toString ( getClass ( ) . getResourceAsStream ( "ct-catcs-2-LF.log" ) ) ; java . lang . String rawCs2 = org . apache . commons . io . IOUtils . toString ( getClass ( ) . getResourceAsStream ( "ct-catcs-2-CRLF.log" ) ) ; hudson ....
org . junit . Assert . assertEquals ( cs1 , cs2 )
testSumGraphDataAggregatorAggregatePlotPointsPerTimeUnitEmptyList ( ) { java . util . List < ? extends org . ebayopensource . turmeric . monitoring . client . model . TimeSlotValue > list = new java . util . ArrayList < org . ebayopensource . turmeric . monitoring . client . DummyTimeSlotValue > ( ) ; int plotPointsPer...
org . junit . Assert . assertEquals ( 0.0 , result [ 0 ] , 0 )
shouldAddCloseValuesDifferentTypes ( ) { com . couchbase . client . java . datastructures . collections . CouchbaseArraySet < java . lang . Object > set = new com . couchbase . client . java . datastructures . collections . CouchbaseArraySet < java . lang . Object > ( uuid , com . couchbase . client . java . datastruct...
org . junit . Assert . assertEquals ( 3 , set . size ( ) )
testIsTerminating ( ) { com . eclipsesource . v8 . utils . V8Executor executor = new com . eclipsesource . v8 . utils . V8Executor ( "" ) ; executor . forceTermination ( ) ; "<AssertPlaceHolder>" ; } isTerminating ( ) { return forceTerminating ; }
org . junit . Assert . assertTrue ( executor . isTerminating ( ) )
return_expression_name_when_use_constructor_with_message_and_cause ( ) { final org . bonitasoft . engine . expression . exception . SExpressionEvaluationException sExpressionEvaluationException = new org . bonitasoft . engine . expression . exception . SExpressionEvaluationException ( message , cause , expressionName )...
org . junit . Assert . assertEquals ( expressionName , result )
testResetClient ( ) { org . apache . cxf . rs . security . oauth2 . common . Client c = addClient ( "111" , "bob" ) ; c . setClientSecret ( "newSecret" ) ; getProvider ( ) . setClient ( c ) ; org . apache . cxf . rs . security . oauth2 . common . Client savedClient = getProvider ( ) . getClient ( c . getClientId ( ) ) ...
org . junit . Assert . assertEquals ( c . getClientSecret ( ) , savedClient . getClientSecret ( ) )
shouldNotMatchEmptyUrl ( ) { "<AssertPlaceHolder>" ; } isUrlCustom ( java . lang . String ) { return ( org . apache . commons . lang3 . StringUtils . isNotBlank ( apiUrl ) ) && ( ! ( org . jenkinsci . plugins . github . config . GitHubServerConfig . GITHUB_URL . equals ( apiUrl ) ) ) ; }
org . junit . Assert . assertThat ( org . jenkinsci . plugins . github . config . GitHubServerConfig . isUrlCustom ( "" ) , org . hamcrest . Matchers . is ( false ) )
testGenerateSecureAESKeyOnToken ( ) { final java . lang . String pkcs11ProvName = org . nhindirect . common . util . TestUtils . setupSafeNetToken ( ) ; if ( ! ( org . apache . commons . lang . StringUtils . isEmpty ( pkcs11ProvName ) ) ) { try { final javax . crypto . KeyGenerator keyGen = javax . crypto . KeyGenerato...
org . junit . Assert . assertNotNull ( key )
testRunningAway ( ) { net . sf . extjwnl . dictionary . IndexWord iw = dictionary . lookupIndexWord ( POS . VERB , "running-away" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( iw )
testLength ( ) { org . opengrok . suggest . query . SuggesterPrefixQuery q = new org . opengrok . suggest . query . SuggesterPrefixQuery ( new org . apache . lucene . index . Term ( "test" , "prefix" ) ) ; "<AssertPlaceHolder>" ; } length ( ) { org . apache . lucene . util . BytesRef prefix = getPrefix ( ) ; if ( prefi...
org . junit . Assert . assertEquals ( "prefix" . length ( ) , q . length ( ) )
echo1 ( ) { script = "{{<sp>}}" ; res = jinjava . render ( script , bindings ) ; "<AssertPlaceHolder>" ; } render ( java . lang . String , java . lang . Object [ ] ) { java . util . Map < java . lang . String , java . lang . Object > context = new java . util . HashMap ( ) ; context . put ( "iterable" , items ) ; retur...
org . junit . Assert . assertEquals ( "" , res )
testArrayAccessCase ( ) { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( ");<sp>" 2 ) ; _builder . newLine ( ) ; _builder . append ( ");<sp>" 0 ) ; _builder . append ( "String<sp>foo(String...<sp>strAr)<sp>{" ) ; _builder . ...
org . junit . Assert . assertNotNull ( clazz )
testConvertWithNoRelations ( ) { java . util . Date begDate = new java . util . Date ( ) ; java . util . Date endDate = new java . util . Date ( ) ; java . lang . Long id = 1L ; java . lang . String identifier = "identifier" ; java . lang . String identifier1 = "identifier1" ; java . lang . String identifier2 = "identi...
org . junit . Assert . assertEquals ( expected , actual )
testExtremeRangeLong ( ) { final long result = org . apache . commons . lang3 . RandomUtils . nextLong ( 0 , Long . MAX_VALUE ) ; "<AssertPlaceHolder>" ; } nextLong ( long , long ) { org . apache . commons . lang3 . Validate . isTrue ( ( endExclusive >= startInclusive ) , "Start<sp>value<sp>must<sp>be<sp>smaller<sp>or<...
org . junit . Assert . assertTrue ( ( ( result >= 0 ) && ( result < ( Long . MAX_VALUE ) ) ) )
testManhattanAlongDim0 ( ) { org . nd4j . linalg . factory . Nd4j . getRandom ( ) . setSeed ( 12345 ) ; org . nd4j . linalg . api . ndarray . INDArray a = org . nd4j . linalg . factory . Nd4j . rand ( new long [ ] { 3 , 4 , 5 } ) ; org . nd4j . linalg . api . ndarray . INDArray b = org . nd4j . linalg . factory . Nd4j ...
org . junit . Assert . assertArrayEquals ( expShape , expOut . shape ( ) )
testEquals3 ( ) { e1 = org . eclipse . tracecompass . internal . ctf . core . event . LostEventDeclaration . INSTANCE ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( e1 , e1 )
trimStringFalse ( ) { com . poiji . option . PoijiOptions options = com . poiji . option . PoijiOptions . PoijiOptionsBuilder . settings ( ) . build ( ) . setTrimCellValue ( false ) ; java . lang . String testVal = ( ( java . lang . String ) ( casting . castValue ( java . lang . String . class , "<sp>value<sp>" , optio...
org . junit . Assert . assertEquals ( "<sp>value<sp>" , testVal )
getAge_shouldGetAgeWithGivenDateBeforeDeath ( ) { java . util . Calendar birthdate = java . util . Calendar . getInstance ( ) ; birthdate . set ( 1990 , Calendar . JUNE , 2 ) ; java . util . Calendar deathDate = java . util . Calendar . getInstance ( ) ; deathDate . set ( 2000 , Calendar . JUNE , 3 ) ; java . util . Ca...
org . junit . Assert . assertEquals ( 5 , person . getAge ( givenDate . getTime ( ) ) , 0 )
testSerialization ( ) { org . jfree . data . time . Week w1 = new org . jfree . data . time . Week ( 24 , 1999 ) ; org . jfree . data . time . Week w2 = ( ( org . jfree . data . time . Week ) ( org . jfree . chart . TestUtilities . serialised ( w1 ) ) ) ; "<AssertPlaceHolder>" ; } serialised ( java . lang . Object ) { ...
org . junit . Assert . assertEquals ( w1 , w2 )
or_tag_predicate_does_not_match_pickle_none_of_the_tags ( ) { gherkin . events . PickleEvent pickleEvent = createPickleWithTags ( java . util . Collections . < gherkin . pickles . PickleTag > emptyList ( ) ) ; cucumber . runtime . filter . TagPredicate predicate = new cucumber . runtime . filter . TagPredicate ( asList...
org . junit . Assert . assertFalse ( predicate . apply ( pickleEvent ) )
decorateNull ( ) { "<AssertPlaceHolder>" ; } decorate ( nl . bzk . algemeenbrp . dal . domein . brp . entity . Onderzoek ) { if ( delegate == null ) { return null ; } return new nl . bzk . brp . bijhouding . bericht . model . BijhoudingOnderzoek ( delegate ) ; }
org . junit . Assert . assertNull ( nl . bzk . brp . bijhouding . bericht . model . BijhoudingOnderzoek . decorate ( null ) )
freeAfterFilePersisted ( ) { alluxio . client . file . URIStatus status = createAsyncFile ( ) ; alluxio . testutils . IntegrationTestUtils . waitForPersist ( mLocalAlluxioClusterResource , mUri ) ; mFileSystem . free ( mUri ) ; alluxio . testutils . IntegrationTestUtils . waitForBlocksToBeFreed ( mLocalAlluxioClusterRe...
org . junit . Assert . assertEquals ( 0 , status . getInMemoryPercentage ( ) )
elemental2ElementTag_customElementWithCustomTag ( ) { final java . util . Collection < java . lang . String > tags = org . jboss . errai . ui . rebind . ioc . element . ElementProviderExtension . elemental2ElementTags ( org . jboss . errai . ui . rebind . ioc . element . ElementProviderExtensionTest . metaClass ( Custo...
org . junit . Assert . assertEquals ( singletonList ( "foo" ) , tags )
testScheduledExecutorService_sameInstance ( ) { io . grpc . internal . FakeClock fakeClock = new io . grpc . internal . FakeClock ( ) ; java . util . concurrent . ScheduledExecutorService scheduledExecutorService1 = fakeClock . getScheduledExecutorService ( ) ; java . util . concurrent . ScheduledExecutorService schedu...
org . junit . Assert . assertTrue ( ( scheduledExecutorService1 == scheduledExecutorService2 ) )