input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
recordOnMockInstanceButReplayOnDifferentInstance ( mockit . MockInstanceMatchingTest$Collaborator ) { thrown . expect ( mockit . MissingInvocation . class ) ; new mockit . Expectations ( ) { { verifiedMock . getValue ( ) ; result = 12 ; } } ; mockit . MockInstanceMatchingTest . Collaborator collaborator = new mockit . ...
org . junit . Assert . assertEquals ( 0 , collaborator . getValue ( ) )
coerceToNeededCoverageSpec ( ) { java . lang . reflect . Type type = com . facebook . buck . rules . coercer . TypeCoercerTest . TestFields . class . getField ( "listOfNeededCoverageSpecs" ) . getGenericType ( ) ; com . facebook . buck . rules . coercer . TypeCoercer < ? > coercer = typeCoercerFactory . typeCoercerForT...
org . junit . Assert . assertEquals ( expectedResult , result )
testGetRibbonBar ( ) { mmarquee . automation . AutomationElement element = org . mockito . Mockito . mock ( mmarquee . automation . AutomationElement . class ) ; when ( element . getClassName ( ) ) . thenReturn ( AutomationRibbonBar . CLASS_NAME ) ; when ( element . getName ( ) ) . thenReturn ( "RIBBON-01" ) ; mmarquee...
org . junit . Assert . assertEquals ( name , "RIBBON-01" )
testTypeClass3 ( ) { com . baidu . bjf . remoting . protobuf . Codec codec = com . baidu . bjf . remoting . protobuf . ProtobufProxy . create ( com . baidu . bjf . remoting . protobuf . bytestest . ByteTypeClass3 . class ) ; com . baidu . bjf . remoting . protobuf . bytestest . ByteTypeClass3 o = new com . baidu . bjf ...
org . junit . Assert . assertArrayEquals ( o . getBytes ( ) , class1 . getBytes ( ) )
testGetMaxGid ( ) { com . gisgraphy . domain . geoloc . entity . OpenStreetMap streetOSM = com . gisgraphy . test . GisgraphyTestHelper . createOpenStreetMapForPeterMartinStreet ( ) ; long gid = 3456L ; streetOSM . setGid ( gid ) ; openStreetMapDao . save ( streetOSM ) ; long actual = openStreetMapDao . getMaxGid ( ) ;...
org . junit . Assert . assertEquals ( gid , actual )
shouldRemoveForAddingUser ( ) { graphStorage . put ( a , access ) ; final boolean remove = graphStorage . remove ( uk . gov . gchq . gaffer . federatedstore . FederatedGraphStorageTest . GRAPH_ID_A , testUser ) ; "<AssertPlaceHolder>" ; } remove ( java . lang . String , uk . gov . gchq . gaffer . user . User ) { graphS...
org . junit . Assert . assertTrue ( remove )
testSimpleWriteReadSignBySign ( ) { org . apache . olingo . odata2 . core . ep . util . CircleStreamBuffer csb = new org . apache . olingo . odata2 . core . ep . util . CircleStreamBuffer ( ) ; java . io . OutputStream write = csb . getOutputStream ( ) ; byte [ ] writeData = "Test" . getBytes ( "UTF-8" ) ; for ( byte e...
org . junit . Assert . assertEquals ( "Test" , result )
testClone ( ) { org . arakhne . afc . math . geometry . d3 . continuous . Plane4f plane2 = ( ( org . arakhne . afc . math . geometry . d3 . continuous . Plane4f ) ( this . r . clone ( ) ) ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ! ( object instanceof org . arakhne . afc . vmutil . MACNumber ...
org . junit . Assert . assertTrue ( plane2 . equals ( this . r ) )
testContextIsSet_null ( ) { fixture . setContext ( ( ( org . eclipse . tracecompass . ctf . core . event . types . StructDeclaration ) ( null ) ) ) ; boolean result = fixture . contextIsSet ( ) ; "<AssertPlaceHolder>" ; } contextIsSet ( ) { return ( fContext ) != null ; }
org . junit . Assert . assertFalse ( result )
testJoinCase3 ( ) { com . github . zk1931 . jzab . QuorumTestCallback cb1 = new com . github . zk1931 . jzab . QuorumTestCallback ( ) ; com . github . zk1931 . jzab . QuorumTestCallback cb2 = new com . github . zk1931 . jzab . QuorumTestCallback ( ) ; com . github . zk1931 . jzab . TestStateMachine st1 = new com . gith...
org . junit . Assert . assertFalse ( isCountedDown )
testParseHeadingBlocksMultiple ( ) { com . liferay . wiki . engine . creole . internal . parser . ast . WikiPageNode wikiPageNode = getWikiPageNode ( "heading-10.creole" ) ; "<AssertPlaceHolder>" ; } getChildASTNodesCount ( ) { return _collectionNode . size ( ) ; }
org . junit . Assert . assertEquals ( 3 , wikiPageNode . getChildASTNodesCount ( ) )
testMaxWidthPerNodeDefault ( ) { org . apache . drill . test . ClusterFixtureBuilder builder = org . apache . drill . test . ClusterFixture . bareBuilder ( dirTestWatcher ) . setOptionDefault ( ExecConstants . CPU_LOAD_AVERAGE_KEY , 0.7 ) ; try ( org . apache . drill . test . ClusterFixture cluster = builder . build ( ...
org . junit . Assert . assertEquals ( maxWidthPerNode , maxWidth )
quoted_cr_eof ( ) { java . util . List < java . lang . String > results = parse ( "\'\r" ) ; "<AssertPlaceHolder>" ; } contains ( E [ ] ) { return org . hamcrest . Matchers . Matchers . contains ( items ) ; }
org . junit . Assert . assertThat ( results , contains ( "\'\r" ) )
shouldHandleConsumerLambda ( ) { org . junit . Assume . assumeThat ( version , org . hamcrest . Matchers . either ( org . hamcrest . core . StringStartsWith . startsWith ( "v2" ) ) . or ( org . hamcrest . core . StringStartsWith . startsWith ( "v3" ) ) ) ; final org . apache . tinkerpop . gremlin . util . function . La...
org . junit . Assert . assertEquals ( o , serializeDeserialize ( mapper , o , org . apache . tinkerpop . gremlin . util . function . Lambda . class ) )
testSort ( ) { java . util . List < io . fabric8 . api . VersionSequence > list = versions ( "1.15" , "1.5" , "1.0.10" , "1.0" , "1.0.5" ) ; java . util . Collections . sort ( list ) ; "<AssertPlaceHolder>" ; } sort ( java . util . Collection ) { java . util . Set < java . lang . String > namespaces = new java . util ....
org . junit . Assert . assertEquals ( versions ( "1.0" , "1.0.5" , "1.0.10" , "1.5" , "1.15" ) , list )
shouldAllowIteratorToBeUsedNominally ( ) { javax . jcr . Node cars = session . getNode ( "/Cars" ) ; javax . jcr . NodeIterator iter = cars . getNodes ( ) ; while ( iter . hasNext ( ) ) { javax . jcr . Node child = iter . nextNode ( ) ; "<AssertPlaceHolder>" ; } } nextNode ( ) { org . modeshape . jcr . cache . CachedNo...
org . junit . Assert . assertNotNull ( child )
testSeveralSegments ( ) { org . apache . commons . math . geometry . euclidean . twod . SubLine twoSubs = new org . apache . commons . math . geometry . euclidean . twod . SubLine ( new org . apache . commons . math . geometry . euclidean . twod . Line ( new org . apache . commons . math . geometry . euclidean . twod ....
org . junit . Assert . assertEquals ( 2 , segments . size ( ) )
testGetImageBoundsForTreeColumn ( ) { org . eclipse . swt . widgets . TreeItem_Test . createColumns ( tree , 1 ) ; org . eclipse . swt . widgets . TreeItem treeItem = new org . eclipse . swt . widgets . TreeItem ( tree , org . eclipse . swt . SWT . NONE ) ; treeItem . setImage ( 1 , createImage ( display , Fixture . IM...
org . junit . Assert . assertEquals ( treeItem . getImageBounds ( 0 ) . x , tree . getVisualCellLeft ( treeItem , 0 ) )
testLongParseDefaultSuccess ( ) { long num = com . rometools . rome . io . impl . NumberParser . parseLong ( "Non<sp>Long" , 1L ) ; "<AssertPlaceHolder>" ; } parseLong ( java . lang . String , long ) { final java . lang . Long ret = com . rometools . rome . io . impl . NumberParser . parseLong ( str ) ; if ( ret == nul...
org . junit . Assert . assertEquals ( 1L , num )
textSummaryNullTest ( ) { java . lang . String text = org . oscarehr . e2e . model . export . body . EncountersModelTest . nullEncountersModel . getTextSummary ( ) ; "<AssertPlaceHolder>" ; } getTextSummary ( ) { java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; if ( ( familyHistory . getFamilyHist...
org . junit . Assert . assertNotNull ( text )
testGetHeaders ( ) { final java . util . Map < java . lang . String , java . lang . String > ht = new java . util . Hashtable < java . lang . String , java . lang . String > ( ) ; ht . put ( "X-Foo" , "Bar" ) ; ht . put ( "X-Int" , "1" ) ; email . setHeaders ( ht ) ; "<AssertPlaceHolder>" ; } getHeaders ( ) { return th...
org . junit . Assert . assertEquals ( ht . size ( ) , email . getHeaders ( ) . size ( ) )
givenString_Uploaded_StringInfoIsAvailable ( ) { org . jets3t . service . model . S3Bucket bucket = createBucket ( ) ; "<AssertPlaceHolder>" ; uploadStringData ( ) ; org . jets3t . service . model . StorageObject objectDetailsOnly = com . baeldung . jets3t . JetS3tLiveTest . s3Service . getObjectDetails ( com . baeldun...
org . junit . Assert . assertNotNull ( bucket )
alternativeVia_persistCascadeOff_with_commitAndContinue ( ) { org . tests . model . m2m . MnyC c = new org . tests . model . m2m . MnyC ( ) ; c . setId ( Long . MAX_VALUE ) ; org . tests . model . m2m . MnyB b = new org . tests . model . m2m . MnyB ( ) ; b . getCs ( ) . add ( c ) ; io . ebean . Transaction transaction ...
org . junit . Assert . assertNotNull ( madeIt )
resolveTest ( ) { co . cask . coopr . store . entity . EntityStoreView view = entityStoreService . getView ( co . cask . coopr . http . ADMIN_ACCOUNT ) ; java . lang . ClassLoader classLoader = co . cask . coopr . http . AdminHandlerTest . class . getClassLoader ( ) ; java . io . InputStream partialSensuIn = classLoade...
org . junit . Assert . assertEquals ( expected , actual )
toJson ( ) { java . lang . String expected = "{\"accessControlType\":\"READ_ONLY\",\"connectionType\":\"DIRECT\",\"databasePrefix\":\"name_\",\"federationType\":\"FEDERATED\",\"latency\":0,\"mappedDatabases\":[],\"metastoreTunnel\":null,\"name\":\"name\",\"remoteMetaStoreUris\":\"uri\",\"status\":\"UNKNOWN\",\"writable...
org . junit . Assert . assertThat ( json , org . hamcrest . CoreMatchers . is ( expected ) )
testIsSupportedKeyTypeFailsForUnsupportedKeyAlgorithm ( ) { java . security . PublicKey key = org . eclipse . californium . scandium . dtls . DtlsTestTools . getClientPublicKey ( ) ; org . eclipse . californium . scandium . dtls . CertificateRequest req = new org . eclipse . californium . scandium . dtls . CertificateR...
org . junit . Assert . assertFalse ( req . isSupportedKeyType ( key ) )
testPropagateWhenAddingUserToRequiredOrganizations ( ) { com . liferay . portal . security . membership . policy . test . util . MembershipPolicyTestUtil . addUser ( addRequiredOrganizations ( ) , null , null , null ) ; "<AssertPlaceHolder>" ; } isPropagateMembership ( ) { return com . liferay . portal . security . mem...
org . junit . Assert . assertTrue ( isPropagateMembership ( ) )
createFreemarkerPortlet ( ) { java . lang . String packageName = "test.freemarker.portlet.gradle" ; wizardAction . openNewLiferayModuleWizard ( ) ; wizardAction . newModule . prepareGradle ( project . getName ( ) , com . liferay . ide . ui . portlet . tests . FREEMARKER_PORTLET ) ; wizardAction . next ( ) ; wizardActio...
org . junit . Assert . assertTrue ( viewAction . project . visibleFileTry ( projectNames ) )
testDilation_Square4x4 ( ) { ij . process . ImageProcessor image = createImage_Square4x4 ( ) ; inra . ijpb . morphology . Strel strel = new inra . ijpb . morphology . strel . DiamondStrel ( 5 ) ; ij . process . ImageProcessor expected = image . createProcessor ( 10 , 10 ) ; for ( int x = 3 ; x < 7 ; x ++ ) { expected ....
org . junit . Assert . assertEquals ( exp , res )
testDeselectAllOptions ( ) { wd . open ( org . finra . jtaf . ewd . widget . element . html . SelectTest . url ) ; org . finra . jtaf . ewd . widget . element . html . Select s = new org . finra . jtaf . ewd . widget . element . html . Select ( selectMultipleLocator ) ; s . selectOption ( "Car" ) ; s . selectOption ( "...
org . junit . Assert . assertEquals ( null , s . getSelectedOption ( ) )
failFourYearsValidation ( ) { org . raml . yagi . framework . util . DateUtils . FOUR_YEARS_VALIDATION = true ; org . raml . yagi . framework . util . DateUtils . setFormatters ( ) ; org . raml . v2 . api . RamlModelResult ramlModelResult = getDateTimeApi ( ) ; "<AssertPlaceHolder>" ; } hasErrors ( ) { return ! ( valid...
org . junit . Assert . assertThat ( ramlModelResult . hasErrors ( ) , org . hamcrest . CoreMatchers . is ( true ) )
runTestExceptions2 ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "GeneralJava/Exceptions2.apk" ) ; "<AssertPlaceHolder>" ; } size ( ) { return ( this . results ) == null ? 0 : this . results . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , res . size ( ) )
testGetGlobal ( ) { java . lang . String out = ( ( java . lang . String ) ( run ( "CONFIG_GET('GLOBAL')" , context ) ) ) ; java . util . Map < java . lang . String , java . lang . Object > actual = toJSONObject ( out ) ; java . util . Map < java . lang . String , java . lang . Object > expected = toJSONObject ( org . a...
org . junit . Assert . assertEquals ( expected , actual )
makeSureSuiteIsCalled ( ) { org . junit . tests . junit3compatibility . SuiteMethodTest . wasRun = false ; org . junit . runner . JUnitCore . runClasses ( org . junit . tests . junit3compatibility . SuiteMethodTest . OldTest . class ) ; "<AssertPlaceHolder>" ; } runClasses ( java . lang . Class [ ] ) { return org . jun...
org . junit . Assert . assertTrue ( org . junit . tests . junit3compatibility . SuiteMethodTest . wasRun )
createICEFaces ( ) { wizardAction . openNewLiferayJsfProjectWizard ( ) ; wizardAction . newLiferayJsf . prepareGradle ( project . getName ( ) , com . liferay . ide . ui . jsf . tests . ICEFACES ) ; wizardAction . finish ( ) ; jobAction . waitForNoRunningJobs ( ) ; "<AssertPlaceHolder>" ; viewAction . project . closeAnd...
org . junit . Assert . assertTrue ( viewAction . project . visibleFileTry ( project . getName ( ) ) )
testCopyFormatAttributesWithKeywordsAsString ( ) { org . sonatype . nexus . repository . npm . internal . NpmFormatAttributesExtractor underTest = new org . sonatype . nexus . repository . npm . internal . NpmFormatAttributesExtractor ( new ImmutableMap . Builder < java . lang . String , java . lang . Object > ( ) . pu...
org . junit . Assert . assertThat ( asset . formatAttributes ( ) . get ( "keywords" ) , org . hamcrest . Matchers . is ( "one" ) )
testFlattenReferenceImpl ( ) { @ org . apache . drill . exec . physical . impl . flatten . SuppressWarnings ( "unchecked" ) java . util . List < org . apache . drill . exec . util . JsonStringHashMap < java . lang . String , java . lang . Object > > data = org . apache . drill . shaded . guava . com . google . common ....
org . junit . Assert . assertEquals ( record , expectedResult . get ( i ) )
testSourceImageFile ( ) { final java . lang . String pathname = edu . illinois . library . cantaloupe . config . Configuration . getInstance ( ) . getString ( Key . FILESYSTEMCACHE_PATHNAME ) ; final edu . illinois . library . cantaloupe . image . Identifier identifier = new edu . illinois . library . cantaloupe . imag...
org . junit . Assert . assertEquals ( expected , sourceImageFile ( identifier ) )
testBuildSuccessResponseNotNull ( ) { com . google . gson . JsonObject response = com . cognizant . devops . platformservice . rest . util . PlatformServiceUtil . buildSuccessResponse ( ) ; "<AssertPlaceHolder>" ; } buildSuccessResponse ( ) { com . google . gson . JsonObject jsonResponse = new com . google . gson . Jso...
org . junit . Assert . assertNotNull ( response )
testXSSScan ( ) { net . continuumsecurity . restyburp . ScanQueueMap sq ; driver . get ( HOMEPAGE ) ; driver . get ( LOGINPAGE ) ; login ( "bob" , "password" ) ; driver . get ( SEARCHPAGE ) ; net . continuumsecurity . restyburp . BurpServiceTest . burp . setConfig ( new net . continuumsecurity . burpclient . ScanPolicy...
org . junit . Assert . assertEquals ( 1 , net . continuumsecurity . restyburp . BurpServiceTest . burp . getIssues ( ) . size ( ) )
shouldPreserveOriginalExceptionMessageWhenWrap ( ) { final java . lang . String message = "someMessage" ; java . lang . Exception e = new java . lang . IllegalArgumentException ( message ) ; java . lang . Exception result = ro . isdc . wro . WroRuntimeException . wrap ( e ) ; "<AssertPlaceHolder>" ; } getMessage ( ) { ...
org . junit . Assert . assertEquals ( e . getMessage ( ) , result . getMessage ( ) )
testFindByProviderIdAndProviderUserIds ( ) { setupUserSocialConnectionList ( ) ; java . util . Set < java . lang . String > providerUserIds = new java . util . HashSet < java . lang . String > ( ) ; providerUserIds . add ( "google-jiwhiz" ) ; providerUserIds . add ( "google-jiwhiz2" ) ; java . util . List < com . jiwhi...
org . junit . Assert . assertEquals ( 2 , result . size ( ) )
assertItemIsBeingDisposedOnRemove ( ) { org . eclipse . smarthome . core . items . GenericItem item = spy ( new org . eclipse . smarthome . core . library . items . SwitchItem ( "Item1" ) ) ; itemProvider . add ( item ) ; @ org . eclipse . smarthome . core . items . SuppressWarnings ( "unchecked" ) org . eclipse . smar...
org . junit . Assert . assertTrue ( ( ( itemCaptor . getValue ( ) ) == item ) )
testSignature ( ) { org . apache . cxf . service . Service service = createService ( ) ; org . apache . wss4j . stax . ext . WSSSecurityProperties inProperties = new org . apache . wss4j . stax . ext . WSSSecurityProperties ( ) ; inProperties . setCallbackHandler ( new org . apache . cxf . ws . security . wss4j . TestP...
org . junit . Assert . assertEquals ( "test" , echo . echo ( "test" ) )
testConcurrency_MultiInstance ( ) { int iterations = 100 ; final java . util . concurrent . atomic . AtomicInteger lockedCounter = new java . util . concurrent . atomic . AtomicInteger ( ) ; final java . util . Random r = new java . security . SecureRandom ( ) ; testMultiInstanceConcurrency ( iterations , ( rc ) -> { o...
org . junit . Assert . assertEquals ( iterations , lockedCounter . get ( ) )
testFormatLogEventStringBuilderDefaultPattern ( ) { final org . apache . logging . log4j . core . LogEvent event = new org . apache . logging . log4j . core . pattern . DatePatternConverterTest . MyLogEvent ( ) ; final org . apache . logging . log4j . core . pattern . DatePatternConverter converter = org . apache . log...
org . junit . Assert . assertEquals ( expected , sb . toString ( ) )
pruneTest2 ( ) { org . hillview . dataset . LocalDataSet < java . lang . Integer > lds0 = new org . hillview . dataset . LocalDataSet < java . lang . Integer > ( 0 ) ; org . hillview . dataset . LocalDataSet < java . lang . Integer > lds1 = new org . hillview . dataset . LocalDataSet < java . lang . Integer > ( 1 ) ; j...
org . junit . Assert . assertNotNull ( result )
shouldReadToString ( ) { final java . io . InputStream is = new java . io . ByteArrayInputStream ( "foo" . getBytes ( "UTF-8" ) ) ; "<AssertPlaceHolder>" ; } toString ( java . io . InputStream , java . lang . String ) { return new java . lang . String ( org . pitest . highwheel . util . StreamUtil . streamToByteArray (...
org . junit . Assert . assertEquals ( "foo" , org . pitest . highwheel . util . StreamUtil . toString ( is , "UTF-8" ) )
testAES256CTRCipher ( ) { final net . schmizz . sshj . DefaultConfig configuration = new net . schmizz . sshj . DefaultConfig ( ) ; configuration . setCipherFactories ( java . util . Collections . singletonList ( new net . schmizz . sshj . transport . cipher . AES256CTR . Factory ( ) ) ) ; final net . schmizz . sshj . ...
org . junit . Assert . assertTrue ( client . isConnected ( ) )
testInit_whatEver ( ) { java . net . URL url = net . sourceforge . jwbf . JWBF . newURLWithoutHandler ( "whatEver:///a" ) ; java . lang . String packageName = "" ; java . util . Map < java . lang . String , java . lang . String > result = net . sourceforge . jwbf . JWBF . init ( packageName , net . sourceforge . jwbf ....
org . junit . Assert . assertEquals ( expected , result )
testSizeAfterDelete ( ) { com . github . davidmoten . rtree3d . Entry < java . lang . Object , com . github . davidmoten . rtree3d . geometry . Box > entry = com . github . davidmoten . rtree3d . RTreeTest . e ( 1 ) ; com . github . davidmoten . rtree3d . RTree < java . lang . Object , com . github . davidmoten . rtree...
org . junit . Assert . assertEquals ( 2 , tree . size ( ) )
runTest ( ) { boolean result = checkNoError ( "Social_Blogs_Blog_Posts" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; }
org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result )
testTrue ( ) { final java . util . Set < nl . bzk . migratiebrp . synchronisatie . dal . domein . brp . kern . entity . Relatie > relatieSet = java . util . Collections . singleton ( relatie ) ; org . mockito . Mockito . when ( persoon . getRelaties ( ) ) . thenReturn ( relatieSet ) ; org . mockito . Mockito . when ( r...
org . junit . Assert . assertTrue ( subject . controleer ( persoon , verzoek ) )
testCanReadViaGroup ( ) { java . lang . String testFileName = "testCanReadViaGroup.xls" ; java . lang . String testUserGroup = "testCanReadViaGroup" ; java . lang . String absPath = org . irods . jargon . core . pub . io . IRODSFileImplTest . scratchFileUtils . createAndReturnAbsoluteScratchPath ( org . irods . jargon ...
org . junit . Assert . assertTrue ( actual . canRead ( ) )
testNoPersonsDeserialize ( ) { java . lang . String xml = loadResource ( "transformer/fitbit_no_person.xml" ) ; java . util . Collection < eu . dime . ps . semantic . model . nco . PersonContact > contacts = transformer . deserialize ( xml , "fitbit" , "/person/@me/@all" , eu . dime . ps . semantic . model . nco . Pers...
org . junit . Assert . assertEquals ( 0 , contacts . size ( ) )
getLeftTransversalTest ( ) { org . openscience . cdk . group . PermutationGroup group = getCubeGroup ( ) ; java . util . List < org . openscience . cdk . group . Permutation > transversal = group . getLeftTransversal ( 1 ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . cells . size ( ) ; }
org . junit . Assert . assertEquals ( 3 , transversal . size ( ) )
test_aggregatorsAndGroupBy ( ) { try ( org . kairosdb . client . HttpClient client = new org . kairosdb . client . HttpClient ( "http://localhost:8082" ) ) { org . kairosdb . client . MetricBuilder metricBuilder = org . kairosdb . client . MetricBuilder . getInstance ( ) ; org . kairosdb . client . Metric metric1 = met...
org . junit . Assert . assertThat ( response . getQueries ( ) . size ( ) , equalTo ( 1 ) )
onGetDefaultValueShouldReturnDefaultValueFromXmlWhenSet ( ) { final int [ ] data = new int [ 20 ] ; data [ 6 ] = android . util . TypedValue . TYPE_FIRST_INT ; data [ 7 ] = 50 ; final android . content . res . TypedArray typedArray = org . robolectric . shadows . ShadowTypedArray . create ( null , null , data , null , ...
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 50 ) , value )
distinctOrTest ( ) { testUp ( ) ; com . rhwayfun . springboot . mybatis . entity . UserExample example = new com . rhwayfun . springboot . mybatis . entity . UserExample ( ) ; example . setDistinct ( true ) ; com . rhwayfun . springboot . mybatis . entity . UserExample . Criteria criteria = example . createCriteria ( )...
org . junit . Assert . assertTrue ( ( ( users . size ( ) ) > 0 ) )
testEnglishUserEnglishSessionPathWithEnglishCookieAlgorithm3 ( ) { java . lang . String prependI18nLanguageId = getPrependI18nLanguageId ( 3 , LocaleUtil . US , LocaleUtil . US , LocaleUtil . US ) ; "<AssertPlaceHolder>" ; } getPrependI18nLanguageId ( int , java . util . Locale , java . util . Locale , java . util . Lo...
org . junit . Assert . assertNull ( prependI18nLanguageId )
testEmpty ( ) { uk . gov . gchq . gaffer . commonutil . elementvisibilityutil . ElementVisibility a = new uk . gov . gchq . gaffer . commonutil . elementvisibilityutil . ElementVisibility ( new byte [ 0 ] ) ; uk . gov . gchq . gaffer . commonutil . elementvisibilityutil . ElementVisibility b = new uk . gov . gchq . gaf...
org . junit . Assert . assertEquals ( a , b )
testConvertAll ( ) { java . lang . Long id = 1L ; java . lang . Long publicActivityId = 2L ; org . lnu . is . domain . publicactivity . PublicActivity publicActivity = new org . lnu . is . domain . publicactivity . PublicActivity ( ) ; publicActivity . setId ( publicActivityId ) ; java . lang . Long enrolmentSubjectId ...
org . junit . Assert . assertEquals ( expecteds , actuals )
accept ( ) { org . eclipse . collections . impl . block . predicate . MapEntryPredicate < java . lang . String , java . lang . Integer > mapEntryPredicate = new org . eclipse . collections . impl . block . predicate . MapEntryPredicate < java . lang . String , java . lang . Integer > ( ) { @ org . eclipse . collections...
org . junit . Assert . assertTrue ( mapEntryPredicate . accept ( this . entry ) )
testPlusDateValues ( ) { java . lang . String sqlText = "values<sp>date('2011-12-26')<sp>+<sp>1" ; java . sql . ResultSet rs = com . splicemachine . derby . impl . sql . execute . operations . SimpleDateArithmeticIT . spliceClassWatcher . executeQuery ( sqlText ) ; java . lang . String expected = "1<sp>|\n" + ( "------...
org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
saveOrder_shouldPassDrugOrderWithoutADrugWhenDrugOrderRequireDrugGBIsFalse ( ) { org . openmrs . GlobalProperty gp = new org . openmrs . GlobalProperty ( org . openmrs . util . OpenmrsConstants . GLOBAL_PROPERTY_DRUG_ORDER_REQUIRE_DRUG , "false" ) ; org . openmrs . api . context . Context . getAdministrationService ( )...
org . junit . Assert . assertFalse ( errors . hasFieldErrors ( ) )
shouldReturnTrueWhenSchemaHasValidatorEdgeIdentifierFilters ( ) { final uk . gov . gchq . gaffer . store . schema . Schema schema = new uk . gov . gchq . gaffer . store . schema . Schema . Builder ( ) . edge ( TestGroups . EDGE , new uk . gov . gchq . gaffer . store . schema . SchemaEdgeDefinition . Builder ( ) . sourc...
org . junit . Assert . assertTrue ( result )
shouldSelectOneAuthorWithInlineParams ( ) { org . apache . ibatis . session . SqlSession session = org . apache . ibatis . session . SqlSessionTest . sqlMapper . openSession ( ) ; try { org . apache . ibatis . domain . blog . Author author = session . selectOne ( "org.apache.ibatis.domain.blog.mappers.AuthorMapper.sele...
org . junit . Assert . assertEquals ( 101 , author . getId ( ) )
testGetConnection ( ) { org . eclipse . birt . report . data . oda . jdbc . OdaJdbcDriver connFact = new org . eclipse . birt . report . data . oda . jdbc . OdaJdbcDriver ( ) ; org . eclipse . birt . report . data . oda . jdbc . Connection conn = ( ( org . eclipse . birt . report . data . oda . jdbc . Connection ) ( co...
org . junit . Assert . assertNotNull ( conn )
setNull ( ) { com . google . gson . JsonObject built = new io . gsonfire . builders . JsonObjectBuilder ( ) . setNull ( "a" ) . build ( ) ; com . google . gson . JsonObject expected = new com . google . gson . JsonObject ( ) ; expected . add ( "a" , null ) ; "<AssertPlaceHolder>" ; } build ( ) { return io . gsonfire . ...
org . junit . Assert . assertEquals ( expected , built )
testMuxBalancersClosed ( ) { configure ( ) ; routeToFirstServer ( ) ; com . devexperts . rmi . RMIRequest < java . lang . Double > sum = createSumRequest ( ) ; sum . send ( ) ; sum . getBlocking ( ) ; "<AssertPlaceHolder>" ; muxes . close ( ) ; await ( TestRMILoadBalancerFactory :: areClientBalancersClosed ) ; } areCli...
org . junit . Assert . assertFalse ( com . devexperts . rmi . test . routing . TestRMILoadBalancerFactory . areClientBalancersClosed ( ) )
testUrlWithWhiteSpaces ( ) { java . io . File f = new java . io . File ( "test/rules/test<sp>xls/Test<sp>with<sp>spaces.xls" ) ; org . openl . rules . lang . xls . XlsWorkbookSourceCodeModule module = new org . openl . rules . lang . xls . XlsWorkbookSourceCodeModule ( new org . openl . source . impl . URLSourceCodeMod...
org . junit . Assert . assertNotNull ( module . getSourceFile ( ) )
testUsingDefaultConfig ( ) { appender . start ( ) ; "<AssertPlaceHolder>" ; appender . stop ( ) ; } getServerSocketFactory ( ) { return socketFactory ; }
org . junit . Assert . assertNotNull ( appender . getServerSocketFactory ( ) )
testGetMillisecondsTime ( ) { com . bixly . pastevid . recorders . RecorderTest . log ( "getMillisecondsTime" ) ; com . bixly . pastevid . recorders . Recorder instance = new com . bixly . pastevid . recorders . Recorder ( null ) ; long expResult = 0L ; long result = instance . getMillisecondsTime ( ) ; "<AssertPlaceHo...
org . junit . Assert . assertEquals ( expResult , result )
testValidateSubscriptionWithoutException ( ) { org . oscm . internal . vo . VOTechnicalService tp = createTechnicalProduct ( svcProv ) ; container . login ( supplierUserKey , org . oscm . serviceprovisioningservice . bean . ROLE_SERVICE_MANAGER ) ; final org . oscm . internal . vo . VOServiceDetails product = createPro...
org . junit . Assert . assertNotNull ( subId )
testGetIPAddressMask ( ) { org . mockito . Mockito . doReturn ( com . digi . xbee . api . WiFiDeviceTest . IP_ADDRESS ) . when ( wifiDevice ) . getParameter ( com . digi . xbee . api . WiFiDeviceTest . PARAMETER_MK ) ; "<AssertPlaceHolder>" ; } getIPAddressMask ( ) { try { return ( ( java . net . Inet4Address ) ( java ...
org . junit . Assert . assertEquals ( java . net . Inet4Address . getByAddress ( com . digi . xbee . api . WiFiDeviceTest . IP_ADDRESS ) , wifiDevice . getIPAddressMask ( ) )
should_delete_database_entry ( ) { final org . mamute . model . Attachment attachment = createAttachment ( "test" ) ; attachmentRepository . save ( attachment ) ; attachmentRepository . delete ( attachment ) ; "<AssertPlaceHolder>" ; } load ( java . lang . Long ) { org . mamute . model . Attachment load = attachments ....
org . junit . Assert . assertNull ( attachments . load ( attachment . getId ( ) ) )
testConnectionCloseInPool ( ) { io . reactiverse . pgclient . pool . ConnectionQueue queue = new io . reactiverse . pgclient . pool . ConnectionQueue ( ) ; io . reactiverse . pgclient . impl . ConnectionPool pool = new io . reactiverse . pgclient . impl . ConnectionPool ( queue , 1 ) ; io . reactiverse . pgclient . poo...
org . junit . Assert . assertEquals ( 0 , pool . available ( ) )
testSendsOutOfRangeItems ( ) { com . eclipsesource . tabris . widgets . swipe . SwipeItemProvider itemProvider = com . eclipsesource . tabris . widgets . swipe . SwipeTest . mockProvider ( 4 ) ; com . eclipsesource . tabris . widgets . swipe . SwipeTest . mockSwipeItem ( itemProvider , 0 , true ) ; com . eclipsesource ...
org . junit . Assert . assertEquals ( new org . eclipse . rap . json . JsonArray ( ) . add ( 0 ) , items )
singleUpload_progressReporter ( ) { final com . oracle . bmc . objectstorage . transfer . UploadConfiguration uploadConfiguration = com . oracle . bmc . objectstorage . transfer . UploadConfiguration . builder ( ) . allowMultipartUploads ( false ) . build ( ) ; final com . oracle . bmc . objectstorage . transfer . Uplo...
org . junit . Assert . assertNotNull ( uploadResponse )
testColumnsOfNumericType ( ) { methodWatcher . executeUpdate ( "alter<sp>table<sp>t4<sp>add<sp>column<sp>b4<sp>smallint<sp>not<sp>null<sp>default<sp>-32768" ) ; methodWatcher . executeUpdate ( "select<sp>a4,<sp>b4+1,<sp>c4+1,<sp>d4+1,<sp>e4+1,<sp>f4+1<sp>from<sp>t4<sp>--splice-properties<sp>index=idx1_t4,<sp>useSpark=%...
org . junit . Assert . assertEquals ( expected , TestUtils . FormattedResult . ResultFactory . toString ( rs ) )
testUpdateReservationNormal ( ) { org . apache . hadoop . yarn . api . protocolrecords . ReservationUpdateRequest request = createSimpleReservationUpdateRequest ( 1 , 1 , 1 , 5 , 3 ) ; org . apache . hadoop . yarn . server . resourcemanager . reservation . Plan plan = null ; try { plan = rrValidator . validateReservati...
org . junit . Assert . assertNotNull ( plan )
deveGerarXMLDeAcordoComOPadraoEstabelecido ( ) { final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemImpostoICMS70 icms70 = new com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemImpostoICMS70 ( ) ; icms70 . setSituacaoTributaria ( NFNotaInfoImpostoTributacaoICMS . C...
org . junit . Assert . assertEquals ( xmlEsperado , icms70 . toString ( ) )
testExpandDataPointWithNullValueMetric ( ) { org . apache . storm . metric . util . DataPointExpander populator = new org . apache . storm . metric . util . DataPointExpander ( true , "." ) ; org . apache . storm . metric . api . IMetricsConsumer . DataPoint point = new org . apache . storm . metric . api . IMetricsCon...
org . junit . Assert . assertEquals ( 0 , expandedDataPoints . size ( ) )
testRotating ( ) { ru . yandex . qatools . ashot . shooting . RotatingDecorator strategy = new ru . yandex . qatools . ashot . shooting . RotatingDecorator ( new ru . yandex . qatools . ashot . shooting . cutter . FixedCutStrategy ( 0 , 0 ) , new ru . yandex . qatools . ashot . shooting . RotatingDecoratorTest . MockSh...
org . junit . Assert . assertFalse ( diff . hasDiff ( ) )
testIsSignedInWithDisconnectedUser ( ) { final java . lang . String COOKIE_NAME = "captain_debug_social_user" ; final java . lang . String COOKIE_VALUE = "qwerty" ; javax . servlet . http . Cookie [ ] cookies = new javax . servlet . http . Cookie [ 1 ] ; javax . servlet . http . Cookie cookie = new javax . servlet . ht...
org . junit . Assert . assertFalse ( result )
shouldHaveHighlightButNoStyleWhenServerDefault ( ) { com . couchbase . client . java . search . SearchQuery p = new com . couchbase . client . java . search . SearchQuery ( null , null ) . highlight ( HighlightStyle . SERVER_DEFAULT ) ; com . couchbase . client . java . document . json . JsonObject result = com . couch...
org . junit . Assert . assertEquals ( expected , result )
getGroup ( ) { org . gitlab4j . api . models . Group group = org . gitlab4j . api . TestGroupApi . gitLabApi . getGroupApi ( ) . getGroup ( org . gitlab4j . api . TestGroupApi . TEST_GROUP ) ; "<AssertPlaceHolder>" ; } getGroup ( java . lang . Object ) { javax . ws . rs . core . Response response = get ( Response . Sta...
org . junit . Assert . assertNotNull ( group )
testExecutionTimesWithIncrementsGreaterThanDaysOfMonth ( ) { final int increment = 56 ; final java . lang . String incrementGreaterDaysOfMonthStartingWithFirstDayOfYear = "0<sp>0<sp>0<sp>?<sp>*<sp>?<sp>*<sp>1/" + increment ; final com . cronutils . model . time . ExecutionTime executionTime = com . cronutils . model . ...
org . junit . Assert . assertEquals ( expected , actual )
testBrpOuder2GezagInhoud ( ) { nl . moderniseringgba . migratie . testutils . EqualsAndHashcodeTester . testEqualsHashcodeAndToString ( new nl . moderniseringgba . migratie . conversie . proces . brpnaarlo3 . groep . BrpOuder2GezagInhoud ( Boolean . TRUE ) , new nl . moderniseringgba . migratie . conversie . proces . b...
org . junit . Assert . assertFalse ( new nl . moderniseringgba . migratie . conversie . proces . brpnaarlo3 . groep . BrpOuder2GezagInhoud ( Boolean . TRUE ) . isLeeg ( ) )
mustNotReleaseLocksAfterPrepareOnStop ( ) { clientA . acquireShared ( org . neo4j . kernel . impl . locking . StopCompatibility . TRACER , org . neo4j . kernel . impl . locking . ResourceTypes . NODE , 1L ) ; clientA . acquireExclusive ( org . neo4j . kernel . impl . locking . StopCompatibility . TRACER , org . neo4j ....
org . junit . Assert . assertEquals ( 2 , lockCountVisitor . getLockCount ( ) )
getIotHubsWorks ( tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . configs . SymmetricKeyAttestation ) { java . util . List < java . lang . String > expectedIotHubs = new java . util . ArrayList ( ) ; tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . configs . En...
org . junit . Assert . assertEquals ( expectedIotHubs , actualIotHubs )
testCanStopAComponentThatWasNeverStartedBecauseItHasNoLifecycle ( ) { com . picocontainer . MutablePicoContainer pico = new com . picocontainer . DefaultPicoContainer ( ) ; pico . addComponent ( com . picocontainer . behaviors . StringBuffer . class ) ; pico . start ( ) ; "<AssertPlaceHolder>" ; pico . stop ( ) ; pico ...
org . junit . Assert . assertNotNull ( pico . getComponent ( com . picocontainer . behaviors . StringBuffer . class ) )
testDDLVDBImportTransitive ( ) { es . start ( new org . teiid . runtime . EmbeddedConfiguration ( ) ) ; java . lang . String ddl1 = "CREATE<sp>DATABASE<sp>x<sp>VERSION<sp>'1';" + ( ( ( "USE<sp>DATABASE<sp>x<sp>VERSION<sp>'1';" + "CREATE<sp>VIRTUAL<sp>SCHEMA<sp>test2;" ) + "USE<sp>DATABASE<sp>test<sp>VERSION<sp>'1';" 5 ...
org . junit . Assert . assertEquals ( "USE<sp>DATABASE<sp>test<sp>VERSION<sp>'1';" 2 , rs . getString ( 1 ) )
testHasX ( ) { com . eclipsesource . tabris . passepartout . Bounds bounds = new com . eclipsesource . tabris . passepartout . Bounds ( 23 , 42 , 123 , 142 ) ; int x = bounds . getX ( ) ; "<AssertPlaceHolder>" ; } getX ( ) { return x ; }
org . junit . Assert . assertEquals ( 23 , x )
testPerformNotificationActionInvalidParamsDto ( ) { org . finra . herd . service . NotificationActionService notificationActionService = notificationActionFactory . getNotificationActionHandler ( NotificationTypeEntity . NOTIFICATION_TYPE_BDATA , NotificationEventTypeEntity . EventTypesBdata . BUS_OBJCT_DATA_RGSTN . na...
org . junit . Assert . assertEquals ( "Notification<sp>event<sp>parameters<sp>DTO<sp>passed<sp>to<sp>the<sp>method<sp>must<sp>be<sp>an<sp>instance<sp>of<sp>BusinessObjectDataNotificationEventParamsDto." , e . getMessage ( ) )
test ( ) { final org . mwg . Graph graph = new org . mwg . GraphBuilder ( ) . withPlugin ( new org . mwg . mlx . MLXPlugin ( ) ) . withScheduler ( new org . mwg . internal . scheduler . NoopScheduler ( ) ) . build ( ) ; graph . connect ( new org . mwg . Callback < java . lang . Boolean > ( ) { @ ml . classifier . Overr...
org . junit . Assert . assertTrue ( ( ( cjc . errors ) <= 1 ) )
withDescription_shouldSetDescription ( ) { org . eclipse . smarthome . core . thing . type . ThingType thingType = builder . withDescription ( org . eclipse . smarthome . core . thing . type . ThingTypeBuilderTest . DESCRIPTION ) . build ( ) ; "<AssertPlaceHolder>" ; } getDescription ( ) { return description ; }
org . junit . Assert . assertThat ( thingType . getDescription ( ) , org . hamcrest . CoreMatchers . is ( org . eclipse . smarthome . core . thing . type . ThingTypeBuilderTest . DESCRIPTION ) )
testDisabledCleanupDelay ( ) { config . setCleanupDelay ( org . eclipse . jgit . lib . RepositoryCacheConfig . NO_CLEANUP ) ; "<AssertPlaceHolder>" ; } getCleanupDelay ( ) { if ( ( cleanupDelayMillis ) < 0 ) { return java . lang . Math . min ( ( ( expireAfterMillis ) / 10 ) , TimeUnit . MINUTES . toMillis ( 10 ) ) ; } ...
org . junit . Assert . assertEquals ( org . eclipse . jgit . lib . RepositoryCacheConfig . NO_CLEANUP , config . getCleanupDelay ( ) )
testGetAllGroupedUnAllowedGroup ( ) { for ( org . opengrok . indexer . configuration . Group g : org . opengrok . indexer . configuration . RuntimeEnvironment . getInstance ( ) . getGroups ( ) ) { if ( g . getName ( ) . startsWith ( "group_0" ) ) { "<AssertPlaceHolder>" ; break ; } } } getAllGrouped ( org . opengrok . ...
org . junit . Assert . assertEquals ( 0 , helper . getAllGrouped ( g ) . size ( ) )
sum_A$_String ( ) { com . m3 . scalaflavor4j . IndexedSeq < java . lang . String > seq = com . m3 . scalaflavor4j . IndexedSeq . apply ( "a" , "b" , "c" ) ; com . m3 . scalaflavor4j . SNum actual = seq . sum ( ) ; "<AssertPlaceHolder>" ; } toInt ( ) { return value . intValue ( ) ; }
org . junit . Assert . assertThat ( actual . toInt ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 6 ) ) )